Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a slow gc thread shutdown when compacting (apache#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: apache#4126
- Loading branch information