kafka/checkstyle
Bruno Cadonna f689e60c3a KAFKA-16017: Checkpoint restored offsets instead of written offsets (#15044)
Kafka Streams checkpoints the wrong offset when a task is closed during
restoration. If under exactly-once processing guarantees a
TaskCorruptedException happens, the affected task is closed dirty, its
state content is wiped out and the task is re-initialized. If during
the following restoration the task is closed cleanly, the task writes
the offsets that it stores in its record collector to the checkpoint
file. Those offsets are the offsets that the task wrote to the changelog
topics. In other words, the task writes the end offsets of its changelog
topics to the checkpoint file. Consequently, when the task is
initialized again on the same Streams client, the checkpoint file is
read and the task assumes it is fully restored although the records
between the last offsets the task restored before closing clean and
the end offset of the changelog topics are missing locally.

The fix is to clear the offsets in the record collector on close.

Reviewer: Lucas Brutschy <lbrutschy@confluent.io>
2023-12-21 10:16:03 +01:00
..
.scalafmt.conf MINOR: Update to Scala 2.13.12 (#14430) 2023-09-24 06:05:12 -07:00
checkstyle.xml KAFKA-15355: Message schema changes (#14290) 2023-11-02 09:46:05 -04:00
import-control-core.xml KAFKA-15357: Aggregate and propagate assignments 2023-11-16 16:19:49 -08:00
import-control-jmh-benchmarks.xml KAFKA-15034: Improve performance of the ReplaceField SMT; add JMH benchmark (#13776) 2023-06-01 15:14:31 -04:00
import-control-metadata.xml KAFKA-15854: Move Java classes from `kafka.server` to the `server` module (#14796) 2023-11-19 22:09:19 -08:00
import-control-server-common.xml KAFKA-15426: Process and persist directory assignments 2023-12-07 11:44:45 -08:00
import-control-server.xml KAFKA-15358: Added QueuedReplicaToDirAssignments metric (#14942) 2023-12-12 03:17:00 -05:00
import-control-storage.xml KAFKA-15854: Move Java classes from `kafka.server` to the `server` module (#14796) 2023-11-19 22:09:19 -08:00
import-control.xml KAFKA-16017: Checkpoint restored offsets instead of written offsets (#15044) 2023-12-21 10:16:03 +01:00
java.header MINOR: improve license header check by providing head file instead of (prefix) header regex 2017-02-28 12:35:04 -08:00
suppressions.xml KAFKA-16017: Checkpoint restored offsets instead of written offsets (#15044) 2023-12-21 10:16:03 +01:00