-
Notifications
You must be signed in to change notification settings - Fork 593
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
storage
: compaction alignment test
#24636
base: dev
Are you sure you want to change the base?
storage
: compaction alignment test
#24636
Conversation
The test uses different segment layouts, runs compaction and compares results. Signed-off-by: Evgeny Lazin <[email protected]>
storage
: compaction alignment test
compaction_config cfg, std::optional<model::offset> new_start_offset) { | ||
return get_disk_log_impl().adjacent_merge_compact(cfg, new_start_offset); | ||
} | ||
|
||
ss::future<> disk_log_builder::apply_sliding_window_compaction( | ||
compaction_config cfg, std::optional<model::offset> new_start_offset) { | ||
return get_disk_log_impl().sliding_window_compact(cfg, new_start_offset); |
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.
sliding_window_compact
returns future<bool>
so it needs something like ignore_result
at the end
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.
Oops. That's what I get for walking away before my build finishes
Pushed
939053a
to
80b0f72
Compare
CI test resultstest results on build#60030
test results on build#60036
test results on build#60040
|
6a7731e
to
d6833b7
Compare
Retry command for Build#60040please wait until all jobs are finished before running the slash command
|
ss::future<ss::stop_iteration> operator()(model::record_batch rb) { | ||
static const auto translation_batches | ||
= model::offset_translator_batch_types(); | ||
if ( |
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.
A different condition than if(rb.header().type != model::record_batch_type::raft_data)
.
Otherwise, compaction placeholder batches may find their way into the ot_state
with a gap_length
of 0.
d6833b7
to
c10d572
Compare
Minor enhancements to #24621
Backports Required
Release Notes