[managedledger] NPE on OpAddEntry while ManagedLedger is closing
@@ -1680,6 +1680,7 @@ public class ManagedLedgerImpl implements ManagedLedger, CreateCallback {
void clearPendingAddEntries(ManagedLedgerException e) {
while (!pendingAddEntries.isEmpty()) {
OpAddEntry op = pendingAddEntries.poll();
+ op.close();
op.failed(e);
}
}
