muralibasani opened a new pull request, #23990: URL: https://github.com/apache/kafka/pull/23990
Ref : https://issues.apache.org/jira/browse/KAFKA-21376 Move AdminUtils#fetchOrWaitForLeader from test-common-runtime to AdminClientTestUtils in the clients test fixtures. Add an overload that takes a TopicPartition and waits for the default timeout. Also fix a race in LeaderElectionCommandTest#assertLeader: fetchOrWaitForLeader returns the current leader, which can be stale right after an election or shutdown. The helper now waits until the expected broker is the leader. -- 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]
