ttapjinda opened a new pull request #9006: URL: https://github.com/apache/kafka/pull/9006
- Introduce nearest.offset.reset option on the Consumer, which will only be used on OffsetOutOfRangeException. On enable, the offset will be reset to the earliest if out-of-range offset is not higher than the earliest offset, otherwise it will be reset to the latest offset. *Summary of testing strategy (including rationale) for the feature or bug fix. Unit and/or integration tests are expected for any behaviour change and system tests should be considered for larger changes.* ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org