michaeljmarshall commented on a change in pull request #12993:
URL: https://github.com/apache/pulsar/pull/12993#discussion_r758041248



##########
File path: 
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java
##########
@@ -1678,7 +1678,6 @@ public ManagedLedgerInterceptor 
getManagedLedgerInterceptor() {
     void clearPendingAddEntries(ManagedLedgerException e) {
         while (!pendingAddEntries.isEmpty()) {
             OpAddEntry op = pendingAddEntries.poll();
-            op.close();

Review comment:
       @codelipenghui - can you explain why you removed this line? Without it, 
when the `addComplete` callback is run, the method won't exit early because the 
state for the `OpAddEntry` will still be `INITIATED`.




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