lhotari commented on a change in pull request #14606:
URL: https://github.com/apache/pulsar/pull/14606#discussion_r821669289



##########
File path: 
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java
##########
@@ -307,7 +307,9 @@ void handleAddFailure(final LedgerHandle lh) {
         finalMl.getExecutor().executeOrdered(finalMl.getName(), 
SafeRun.safeRun(() -> {
             // Force the creation of a new ledger. Doing it in a background 
thread to avoid acquiring ML lock
             // from a BK callback.
-            finalMl.ledgerClosed(lh);
+            if (finalMl != null) {

Review comment:
       StreamNative 2.8.1.2 doesn't include #12103: 
https://github.com/streamnative/pulsar/blob/d952ec78079e48b325310566900ccba7c75ba0e3/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpAddEntry.java#L288-L292




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