-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pump: Clean up obsolete value logs concurrently (#726)
* pump: Clean up obsolete value logs concurrently Deleting value log files before deleting the corresponding rows in GoLevelDB doesn't affect correctness in this case, because: 1. the specified Ts is stored in LevelDB as gcTS before actually doing GC 2. PullCommitBinlogs uses `gcTS + 1` as the start of the range when iterating binlogs, so even if all the records in LevelDB are not deleted, we can still be sure that the garbage collected rows are not sent to drainers So we don't have to wait for the potentially slow LevelDB cleanup to remove unused value log files and reclaim most of the disk space.
- Loading branch information
1 parent
11b9d1d
commit ff6f730
Showing
3 changed files
with
46 additions
and
17 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
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