mirror of https://github.com/apache/kafka.git
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> |
||
---|---|---|
.. | ||
main/java/org/apache/kafka | ||
test/java/org/apache/kafka |