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


##########
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java:
##########
@@ -1483,17 +1483,16 @@ public synchronized void createComplete(int rc, final 
LedgerHandle lh, Object ct
         } else {
             log.info("[{}] Created new ledger {}", name, lh.getId());
             ledgers.put(lh.getId(), 
LedgerInfo.newBuilder().setLedgerId(lh.getId()).setTimestamp(0).build());

Review Comment:
   Maybe we can also move this line to metadata persistent success? and then we 
don't need to remove it when store metadata failed.



-- 
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]

Reply via email to