Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release ledgerHandler when no missing fragments in checkAllLedgers (#…
…3888) ### Motivation In checkAllLedgers when the ledger no missing fragments, will miss invoke` lh.closeAsync()` to close ledgerHandler, which cause autorecovery not invoke `unregisterLedgerMetadataListener` to release ledger metadata listeners. Heap memory be used too much and maybe will cause OOM; <img width="1567" alt="image" src="https://user-images.githubusercontent.com/84127069/227937422-1113af68-9bf3-4466-97fa-d9b7cc5d72be.png"> ### Changes 1. Invoke` lh.closeAsync()` when no missing fragments;
- Loading branch information