kafka/checkstyle
Luke Chen ad4405c8dd
KAFKA-17062: handle dangling "copy_segment_start" state when deleting remote logs (#16959)
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.

Co-authored-by: Guillaume Mallet <>

Reviewers: Kamal Chandraprakash<kamal.chandraprakash@gmail.com>, Satish Duggana <satishd@apache.org>, Guillaume Mallet <>
2024-08-29 14:09:55 +08:00
..
.scalafmt.conf
checkstyle.xml
import-control-coordinator-common.xml KAFKA-17342 Moved common coordinator code to separate module (#16883) 2024-08-18 21:48:44 +08:00
import-control-core.xml KAFKA-16972: Move BrokerTopicStats to storage module (#17003) 2024-08-27 11:39:37 +02:00
import-control-group-coordinator.xml KAFKA-16379; Coordinator event queue, processing, flush, purgatory time histograms (#16949) 2024-08-23 04:53:22 -07:00
import-control-jmh-benchmarks.xml
import-control-metadata.xml
import-control-server-common.xml
import-control-server.xml
import-control-share-coordinator.xml KAFKA-17367: Share coordinator infra classes [1/N] (#16921) 2024-08-26 10:09:47 -04:00
import-control-share.xml KAFKA-17346: Create :share Gradle module (#16888) 2024-08-19 16:13:08 -04:00
import-control-storage.xml
import-control-transaction-coordinator.xml
import-control.xml KAFKA-17331 Set correct version for EarliestLocalSpec and LatestTieredSpec (#16876) 2024-08-25 17:39:28 +08:00
java.header
suppressions.xml KAFKA-17062: handle dangling "copy_segment_start" state when deleting remote logs (#16959) 2024-08-29 14:09:55 +08:00