rdhabalia opened a new pull request #1945: Fix: managedledger factory shutdown stuck when any of ledger future-result is not completed URL: https://github.com/apache/incubator-pulsar/pull/1945 ### Motivation While closing ManagedLedgerFactory, if one of the ledger-future is not completed then ledgerFactory doesn't complete latch-count and stuck. ``` - java.util.concurrent.CountDownLatch.await() @bci=5, line=231 (Interpreted frame) - org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl.shutdown() @bci=117, line=292 (Interpreted frame) - org.apache.pulsar.broker.ManagedLedgerClientFactory.close() @bci=4, line=61 (Interpreted frame) - org.apache.pulsar.broker.PulsarService.close() @bci=74, line=219 (Interpreted frame) ``` ### Modifications - decrement latch count if ledger-future is not completed. - add timeout to PulsarSinkE2ETest ### Result ManagedLedgerFactory will not stuck while shutting down.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services