You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/06 13:46:12 UTC

[GitHub] [pulsar] hangc0276 commented on a diff in pull request #16420: [fix][broker] fix No such ledger exception

hangc0276 commented on code in PR #16420:
URL: https://github.com/apache/pulsar/pull/16420#discussion_r914859005


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java:
##########
@@ -1494,6 +1493,7 @@ public void operationComplete(Void v, Stat stat) {
                         log.debug("[{}] Updating of ledgers list after create complete. version={}", name, stat);
                     }
                     ledgersStat = stat;
+                    currentLedger = lh;

Review Comment:
   Move 
   ```
   currentLedgerEntries = 0;
   currentLedgerSize = 0;
   ```
   here?



-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org