kkonstantine opened a new pull request #8735: URL: https://github.com/apache/kafka/pull/8735
A recently added assertion in Connect integration tests uses `consumer#partitionsFor` to verify that a topic was created with the expected number of partitions and replicas. However, probably because of metadata propagation delays, this call doesn't always return a valid `PartitionInfo` for the topic that has just been created. This commit changes the assertion to perform retries in order to verify the topic settings and uses the admin client instead. Tests have been adjusted to use the new assertion. ### 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