Skip to content

Commit

Permalink
Merge pull request #17716 from Lazin/ci-fix/15312-reader-fails-to-con…
Browse files Browse the repository at this point in the history
…sume

CORE-1614 storage: Initialize timestamps in the compaction_placeholder
  • Loading branch information
piyushredpanda authored Apr 10, 2024
2 parents c03f983 + b1507f8 commit 404efaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v/storage/compaction_reducers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ model::record_batch copy_data_segment_reducer::make_placeholder_batch(
new_hdr.type = model::record_batch_type::compaction_placeholder;
new_hdr.base_offset = hdr.base_offset;
new_hdr.last_offset_delta = hdr.last_offset_delta;
new_hdr.first_timestamp = hdr.first_timestamp;
new_hdr.max_timestamp = hdr.max_timestamp;
auto no_records = iobuf{};
reset_size_checksum_metadata(new_hdr, no_records);
return model::record_batch(
Expand Down

0 comments on commit 404efaf

Please sign in to comment.