kirktrue opened a new pull request, #18515: URL: https://github.com/apache/kafka/pull/18515
Update the logic to ensure that the `tp` partition is actually assigned (or revoked) to the `Consumer` before using it in the various `Consumer` API calls in the test. The new consumer does not necessarily receive _all_ the partitions it's assigned in a single call to `onPartitionsAssigned()` (same with `onPartitionsRevoked()`). The test assumed that because it received _a_ call to `onPartitionsAssigned()` that means that call included _both_ partitions. That is _usually_ true, but not always. ### 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]
