Skip to content

Commit

Permalink
Merge pull request #24434 from nvartolomei/nv/CORE-7687
Browse files Browse the repository at this point in the history
archival: calculate time based retention from first addressable segment
  • Loading branch information
nvartolomei authored Dec 4, 2024
2 parents cddb5ef + a7d42d2 commit 61b306d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v/cluster/archival/retention_calculator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ std::optional<retention_calculator> retention_calculator::factory(

if (
manifest.size() > 0
&& manifest.begin()->max_timestamp < oldest_allowed_timestamp) {
&& manifest.first_addressable_segment()->max_timestamp
< oldest_allowed_timestamp) {
strats.push_back(
std::make_unique<time_based_strategy>(oldest_allowed_timestamp));
}
Expand Down

0 comments on commit 61b306d

Please sign in to comment.