Nancy-ksolves opened a new pull request, #16729:
URL: https://github.com/apache/kafka/pull/16729

   The current implementation of OffsetSpec.latest() is misleading behaviour.
   For empty topic, the latest offset will be 0 (instead of -1, similar to 
`OffsetSpec.forTimestamp` method).
   For topic with 1 message per partition, the latest returned offset will be 1 
(instead of 0).
   Updated OffsetSpec.latest() to correctly represent the latest offset per 
partition.
   
   *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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to