ParthibanRajasekaran opened a new pull request, #4781:
URL: https://github.com/apache/iggy/pull/4781

   ## Which issue does this PR address?
   
   <!--
   We generally require a GitHub issue for all bug fixes and enhancements. Link 
it with GitHub syntax, keep the line that applies and delete the other:
   - `Closes #123` auto-closes the issue when this PR merges (full fix).
   - `Relates to #123` links without closing (partial or related work).
   -->
   
   Closes #4650
   
   ## Rationale
   
   Idle partitions can retain expired or over-budget data because their active 
segment is never sealed. Retention cannot remove the active segment, so cleanup 
remains blocked until another write triggers rotation.
   
   ## What changed?
   
   The cleaner now asks the partition primary to replicate a `RollSegment` 
operation when a non-empty active segment would become eligible for retention 
after sealing. The operation is applied at the committed log position and 
rotates the segment consistently across replicas before the existing cleanup 
pass runs. Empty active segments are not rolled.
   
   ## Local Execution
   
   - Passed `cargo fmt --all`
   - Passed `cargo check -p partitions -p server`
   - Passed `cargo test -p partitions --lib` (731 passed, 3 ignored)
   - Passed `cargo test -p server segment_cleaner --lib` (3 passed)
   - Pre-commit hooks not run: `prek` was not installed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to