wuzhanpeng commented on a change in pull request #7111:
URL: https://github.com/apache/pulsar/pull/7111#discussion_r433029733
##########
File path:
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/ManagedLedger.java
##########
@@ -472,4 +472,9 @@ void asyncSetProperties(Map<String, String> properties,
final AsyncCallbacks.Set
* @param promise
*/
void trimConsumedLedgersInBackground(CompletableFuture<?> promise);
+
+ /**
+ * Roll current ledger if it is full
+ */
+ void rollCurrentLedgerIfFull();
Review comment:
I hope to be able to consult you here for advice, because I am not sure
whether doing type casting in the `BrokerService` is a suitable implementation.
Maybe I can modify with:
```java
((ManagedLedgerImpl) managedLedger).rollCurrentLedgerIfFull();
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]