Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/v/cluster/archival/ntp_archiver_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2774,6 +2774,9 @@ ss::future<> ntp_archiver::apply_archive_retention() {
_rtclog.warn,
"Failed to replicate archive truncation command: {}",
error.message());

throw std::runtime_error(fmt_with_ctx(
fmt::format, "Failed to apply archive retention: {}", error));
Comment thread
Lazin marked this conversation as resolved.
} else {
vlog(
_rtclog.info,
Expand Down Expand Up @@ -2986,6 +2989,10 @@ ss::future<> ntp_archiver::garbage_collect_archive() {
_rtclog.info,
"Failed to clean up metadata after garbage collection: {}",
error);
throw std::runtime_error(fmt_with_ctx(
fmt::format,
"Failed to clean up metadata after archive GC: {}",
Comment thread
Lazin marked this conversation as resolved.
error));
} else {
std::ignore = co_await _remote.delete_objects(
get_bucket_name(), manifests_to_remove, fib);
Expand Down Expand Up @@ -3028,7 +3035,7 @@ ss::future<> ntp_archiver::apply_spillover() {
auto fo = manifest().begin()->base_offset;
if (fo != so.value()) {
vlog(
_rtclog.error,
_rtclog.warn,
"Spillover invariant violated: manifest start_offset {}, first "
"segment base_offset {}",
so.value(),
Expand Down Expand Up @@ -3439,6 +3446,9 @@ ss::future<> ntp_archiver::garbage_collect() {
_rtclog.info,
"Failed to clean up metadata after garbage collection: {}",
error);

throw std::runtime_error(fmt_with_ctx(
fmt::format, "Failed to clean up metadata after GC: {}", error));
Comment thread
Lazin marked this conversation as resolved.
}
} else {
vlog(
Expand Down