dengziming opened a new pull request #11936: URL: https://github.com/apache/kafka/pull/11936
*More detailed description of your change* In `KafkaConsumer` we will filter listOffsetsResut whose value=-1 https://github.com/apache/kafka/blob/a3adf41d8b90d1244232e448b959db3b3f4dc2fe/clients/src/main/java/org/apache/kafka/clients/consumer/internals/Fetcher.java#L1062 whereas `AdminClient` will not filter them so the result is not the same, maybe we can update the description here https://github.com/apache/kafka/blob/a3adf41d8b90d1244232e448b959db3b3f4dc2fe/core/src/main/scala/kafka/tools/GetOffsetShell.scala#L73 but I think it's better to filter them for compatibility. *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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org