-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(compaction): support trivial reclaim #10258
fix(compaction): support trivial reclaim #10258
Conversation
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Li0k PTAL space_reclaim part which is refactored a lot.
return Some(CompactionInput { | ||
input_levels: vec![ | ||
InputLevel { | ||
level_idx: level.level_idx, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is level.level_idx always 0?
src/meta/src/hummock/compaction/picker/space_reclaim_compaction_picker.rs
Show resolved
Hide resolved
src/meta/src/hummock/compaction/picker/space_reclaim_compaction_picker.rs
Outdated
Show resolved
Hide resolved
}); | ||
} | ||
} | ||
state.last_level = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about change state.last_level = 1
-> state.last_level = base_level
if convenient
src/storage/hummock_sdk/src/compaction_group/hummock_version_ext.rs
Outdated
Show resolved
Hide resolved
src/storage/hummock_sdk/src/compaction_group/hummock_version_ext.rs
Outdated
Show resolved
Hide resolved
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
fix #10215
This PR will create reference for every sstable files in group-split. It means that a large group can not reduce the number of sstable files at the time when it splits a large table to an independent group. We will use space-reclaim compaction to reduce the number of files after group split.
I add a compatibility field in hummock.proto to ensure this change would not affect those risingwave cluster which upgrade from an old version. If the version-delta was generated by the old binary, it would still move all files which have no data of valid table-id to new group.
Checklist For Contributors
./risedev check
(or alias,./risedev c
)Checklist For Reviewers
Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note