Repository navigation
Add merge_selector_min_age_to_disable_right_tail_heuristic to disable right tail heuristic partitions no longer being written to - #105454
Conversation
|
Workflow [PR], commit [d7edb53] AI ReviewSummaryThis PR adds the opt-in Final Verdict
|
LLVM Coverage Report
Changed lines: 98.96% (95/96) · Uncovered code |
e429e9e to
c1ae085
Compare
8864950 to
d7edb53
Compare
alexey-milovidov
left a comment
There was a problem hiding this comment.
Thanks! The implementation is clear. Though it will be mostly pointless without a path for testing it and enabling it by default.
|
Please enable "allow edits by maintainers", otherwise we can't merge it. |
|
🕵 Superseded by #122638. That PR keeps your original commits, merges current |
Adds an opt-in
MergeTreesetting,merge_selector_min_age_to_disable_right_tail_heuristic, forSimpleandStochasticSimplemerge selectors.When set to a non-zero value, the merge selector skips the right-tail small-part removal heuristic for candidate ranges where every part is at least that many seconds old. The default value is
0, so existing merge behavior is preserved unless the setting is explicitly enabled. This is intended to help compact old immutable partitions where the existing right-tail heuristic can leave small parts stranded near a partition boundary.Question for reviewers
This seems like something that should be fixed more broadly than what I've done here
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Added the
merge_selector_min_age_to_disable_right_tail_heuristicMergeTreesetting to letSimpleandStochasticSimplemerge selectors include old right-tail parts in mergecandidates once all parts in the candidate range are old enough.
Documentation entry:
MergeTreesetting description inMergeTreeSettings.cpp.Fixes #70912
Should help with #79697