mattisonchao commented on code in PR #21159:
URL: https://github.com/apache/pulsar/pull/21159#discussion_r1321334016
##########
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/bookkeeper/AbstractHierarchicalLedgerManager.java:
##########
@@ -206,10 +206,11 @@ protected void asyncProcessLedgersInSingleNode(
mcb = new
BookkeeperInternalCallbacks.MultiCallback(activeLedgers.size(), finalCb, ctx,
successRc, failureRc);
// start loop over all ledgers
- for (Long ledger : activeLedgers) {
- processor.process(ledger, mcb);
- }
-
+ scheduler.submit(() -> {
Review Comment:
How about using `thenAcceptAsync` (line 192)with the scheduler executor to
clarify it? :) it means we won't use zk thread to do any task.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]