Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix close ledgerAuditorManager repeatedly (#3503)
### Motivation this introduced in #2842, the `ledgerAuditorManager` will be close repeatedly. ```java private void submitShutdownTask() { executor.submit(new Runnable() { @OverRide public void run() { if (!running.compareAndSet(true, false)) { return; } try { ledgerAuditorManager.close(); <- here has already closed LAM. } catch (InterruptedException ie) { Thread.currentThread().interrupt(); LOG.warn("InterruptedException while closing ledger auditor manager", ie); } catch (Exception ke) { LOG.error("Exception while closing ledger auditor manager", ke); } } }); } ``` (cherry picked from commit dbec4e9)
- Loading branch information