erobot opened a new pull request, #4127:
URL: https://github.com/apache/bookkeeper/pull/4127

   Descriptions of the changes in this PR:
   
   ### Motivation
   
   Fix a slow gc thread shutdown when compacting.
   
   The problem here is that the stop flag `running` has been moved after 
`compacting.compareAndSet`. When `running` is not set to false, entry log 
continues to compact one after one and the shutdown thread is hard to set the 
`compacting`.
   
   ### Changes
   
   Set `running` to false first and then check `compacting`.
   
   Master Issue: #4126


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