GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Fix SST files not being cleaned up in the locations folder by danpi · Pull Request #4555 · apache/bookkeeper Conversation
Contributor
Descriptions of the changes in this PR: Fix #4554 MotivationResolve issue with SST files remaining uncleared in the locations folder. Changes
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
hangc0276
reviewed
Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
@danpi Great job! I think it should be a bug in RocksDB. We can use option 2. Please check the failed CI, thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@hangc0276 Addressed the feedback above. PTAL, thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| long majorCompactionMaxTimeMillis; | ||
| long lastMajorCompactionTime; | ||
|
|
||
| boolean enableEntryLocationCompaction = false; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Remove this one and use entryLocationCompactionInterval > 0 instead?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| minorCompacting.set(false); | ||
| } | ||
| } | ||
| if (enableEntryLocationCompaction && (curTime - lastEntryLocationCompactionTime |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We'd better introduce a random factor for it. If we roll restart the BookKeeper cluster, and all the bookies start time are the same, which will make all the bookies triggered RocksDB compaction at the same time and impact the read latency.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The random factor can be any time in [0, entryLocationCompactionInterval]
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@danpi Thanks for your contribution. I left more comments; please take a look. Thanks. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ion simultaneously
@hangc0276 Add |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@danpi Would you please fix the check style issue? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@danpi Could you help to fix the checkstyle. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* fix entry location compaction * replace entryLocationCompactionEnable with entryLocationCompactionInterval * Add randomCompactionDelay to avoid all the bookies triggering compaction simultaneously * Fix the style issue * Fix the style issue * Fix test --------- Co-authored-by: houbonan <[email protected]> Co-authored-by: zymap <[email protected]> (cherry picked from commit ede1ba9)
* fix entry location compaction * replace entryLocationCompactionEnable with entryLocationCompactionInterval * Add randomCompactionDelay to avoid all the bookies triggering compaction simultaneously * Fix the style issue * Fix the style issue * Fix test --------- Co-authored-by: houbonan <[email protected]> Co-authored-by: zymap <[email protected]> (cherry picked from commit ede1ba9)
* fix entry location compaction * replace entryLocationCompactionEnable with entryLocationCompactionInterval * Add randomCompactionDelay to avoid all the bookies triggering compaction simultaneously * Fix the style issue * Fix the style issue * Fix test --------- Co-authored-by: houbonan <[email protected]> Co-authored-by: zymap <[email protected]> (cherry picked from commit ede1ba9) (cherry picked from commit 138849a)
* fix entry location compaction * replace entryLocationCompactionEnable with entryLocationCompactionInterval * Add randomCompactionDelay to avoid all the bookies triggering compaction simultaneously * Fix the style issue * Fix the style issue * Fix test --------- Co-authored-by: houbonan <[email protected]> Co-authored-by: zymap <[email protected]> (cherry picked from commit ede1ba9) (cherry picked from commit 138849a)
* fix entry location compaction * replace entryLocationCompactionEnable with entryLocationCompactionInterval * Add randomCompactionDelay to avoid all the bookies triggering compaction simultaneously * Fix the style issue * Fix the style issue * Fix test --------- Co-authored-by: houbonan <[email protected]> Co-authored-by: zymap <[email protected]> (cherry picked from commit ede1ba9) (cherry picked from commit fbd33b5)
* fix entry location compaction * replace entryLocationCompactionEnable with entryLocationCompactionInterval * Add randomCompactionDelay to avoid all the bookies triggering compaction simultaneously * Fix the style issue * Fix the style issue * Fix test --------- Co-authored-by: houbonan <[email protected]> Co-authored-by: zymap <[email protected]> (cherry picked from commit ede1ba9) (cherry picked from commit fbd33b5)
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[BUG]Large number of SST files in locations not being cleared after upgrade
There was an error while loading. Please reload this page.