-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compactor: hold lock for a shorter amount of time (#7265)
If we are constantly running compactor in a loop then we shouldn't pay the price of constantly holding the lock in the garbage collection function. What the lock holding means in practice that we have to wait two or sometimes even three times the amount it takes to sync metas. That doesn't make sense since we are running the compactor in a loop and the compacted blocks are properly taken care of. Signed-off-by: Giedrius Statkevičius <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters