kafka/server/src
Apoorv Mittal df5839a9f4
KAFKA-17351: Improved handling of compacted topics in share partition (2/N) (#19010)
The PR handles fetch for `compacted` topics. The fix was required only
when complete batch disappears from the topic log, and same batch is
marked re-available in Share Partition state cache. Subsequent log reads
will not result the disappeared batch in read response hence respective
batch will be left as available in the state cache.

The PR checks for the first fetched/read batch base offset and if it's
greater than the position from where the read occurred (fetch offset)
then if there exists any `available` batches in the state cache then
they will be archived.

Reviewers: Andrew Schofield <aschofield@confluent.io>, Abhinav Dixit <adixit@confluent.io>
2025-02-25 14:11:39 +00:00
..
main/java/org/apache/kafka KAFKA-17351: Improved handling of compacted topics in share partition (2/N) (#19010) 2025-02-25 14:11:39 +00:00
test/java/org/apache/kafka KAFKA-18522: Slice records for share fetch (#18804) 2025-02-24 09:55:24 -08:00