Skip to content

Commit

Permalink
archival: Disable housekeeping jobs on startup
Browse files Browse the repository at this point in the history
When the archiver is created there is a small window of opportunity for
it to run some housekeeping jobs before the manifest is synced. This
commit disables the housekeeping jobs in the contstructor to avoid this.
  • Loading branch information
Lazin committed May 16, 2024
1 parent 02835df commit d4735bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/v/archival/ntp_archiver_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ ntp_archiver::ntp_archiver(
_next_housekeeping = _housekeeping_jitter();
});

if (_local_segment_merger) {
_local_segment_merger->set_enabled(false);
}
if (_scrubber) {
_scrubber->set_enabled(false);
}

_start_term = _parent.term();
// Override bucket for read-replica
if (_parent.is_read_replica_mode_enabled()) {
Expand Down

0 comments on commit d4735bc

Please sign in to comment.