MahsaSeifikar opened a new pull request, #20976: URL: https://github.com/apache/kafka/pull/20976
The `testPreferredReplicaElection` test shows rare flakiness by failing with this error `X replica(s) could not be elected`. This occurs because the test uses `--all-topic-partitions`, which attempts preferred leader election on all internal topics as well as the test topic which creates some timing issue. While the test waits for the test topic to join the ISR, it does not wait for all internal topics to synchronize their ISR membership after the broker restart. This fix modifies the test to target only the specific test topic partition rather than all partitions. -- 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]
