Vanlightly commented on pull request #2887:
URL: https://github.com/apache/bookkeeper/pull/2887#issuecomment-975297314


   @aloyszhang An exception thrown during the shutdown would leave the 
CountdownLatch at 1, blocking the second caller. I would replace the 
AtomicBoolean and CountdownLatch with a simple lock, that is acquired before 
`if (isRunning())` and that would do everything needed.


-- 
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