kafka/checkstyle
Guillaume Mallet c9347cfd5f
KAFKA-17062: handle dangling "copy_segment_start" state when deleting… (#17359)
The COPY_SEGMENT_STARTED state segments are counted when calculating remote retention size. This causes unexpected retention size breached segment deletion. This PR fixes it by
  1. only counting COPY_SEGMENT_FINISHED and DELETE_SEGMENT_STARTED state segments when calculating remote log size.
  2. During copy Segment, if we encounter errors, we will delete the segment immediately.
  3. Tests added.

Reviewers: Luke Chen <showuon@gmail.com>
2024-10-04 14:51:05 +08:00
..
.scalafmt.conf
checkstyle.xml
import-control-core.xml
import-control-group-coordinator.xml
import-control-jmh-benchmarks.xml
import-control-metadata.xml
import-control-server-common.xml
import-control-server.xml
import-control-storage.xml
import-control.xml
java.header
suppressions.xml KAFKA-17062: handle dangling "copy_segment_start" state when deleting… (#17359) 2024-10-04 14:51:05 +08:00