Skip to content

Commit

Permalink
Merge pull request #24089 from vbotbuildovich/backport-pr-23936-v24.1…
Browse files Browse the repository at this point in the history
….x-296

[v24.1.x] storage: remove assertion on `is_cloud_retention_active`
  • Loading branch information
ballard26 authored Nov 11, 2024
2 parents 6764fd6 + abe92c3 commit 6912c71
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/v/storage/disk_log_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1284,8 +1284,13 @@ ss::future<std::optional<model::offset>> disk_log_impl::do_gc(gc_config cfg) {
const auto offset = _cloud_gc_offset.value();
_cloud_gc_offset.reset();

vassert(
is_cloud_retention_active(), "Expected remote retention active");
if (!is_cloud_retention_active()) {
vlog(
gclog.warn,
"[{}] expected remote retention to be active",
config().ntp());
co_return std::nullopt;
}

vlog(
gclog.info,
Expand Down

0 comments on commit 6912c71

Please sign in to comment.