Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Heap memory leak problem when ledger replication failed (#2794)
### Motivation production environment, memory leak always happened, and there were ledger cannot be replicated successfully. This cause by when `openLedgerNoRecovery` with `BKNotEnoughBookiesException`, the LedgerHandler won't closed properly, caused memory leak https://github.com/apache/bookkeeper/blob/c7236adc3cb659e65ae5ce53b7156569d7f50ebd/bookkeeper-server/src/main/java/org/apache/bookkeeper/replication/ReplicationWorker.java#L364-L424 ### Changes close LedgerHandler when openComplete with exception
- Loading branch information