gaozhangmin opened a new pull request #2794:
URL: https://github.com/apache/bookkeeper/pull/2794


   ### Motivation
   
   production environment, memory leak always happened, and there were ledger 
cannot be replicated successfully.
   
   
![image](https://user-images.githubusercontent.com/9278488/133393193-b88f509a-bd9c-49b4-9655-e259fce6d854.png)
   
   
   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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to