lh0156 opened a new pull request, #23029:
URL: https://github.com/apache/kafka/pull/23029

   ## Summary
   
   When a windowed changelog ends with a transaction control record, the 
restore consumer filters that record from poll results. Probing only `endOffset 
- 1` therefore returns no record and incorrectly abandons the retention-based 
restore optimization.
   
   This change retries the probe from the preceding offset before falling back 
to the beginning. The regression test covers both a visible latest record and 
the filtered control-record case.
   
   ## Testing
   
   - TDD RED: the new filtered-record case failed on the baseline branch 
because restoration fell back to the beginning.
   - TDD GREEN: `./gradlew :streams:test --tests 
org.apache.kafka.streams.processor.internals.StoreChangelogReaderTest.shouldSeekByTimestampForWindowedStoreWithoutCheckpoint
 --no-build-cache --console=plain`
   - The targeted Gradle run completed the affected streams checkstyle and 
SpotBugs tasks successfully.
   - `git diff --check`
   
   Jira: https://issues.apache.org/jira/browse/KAFKA-20876


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to