You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "MahsaSeifikar (via GitHub)" <gi...@apache.org> on 2025/11/24 15:10:37 UTC

[PR] MINOR: Fix rare flaky behaviour in testPreferredReplicaElection [kafka]

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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] MINOR: Fix rare flaky behaviour in testPreferredReplicaElection [kafka]

Posted by "mumrah (via GitHub)" <gi...@apache.org>.
mumrah merged PR #20976:
URL: https://github.com/apache/kafka/pull/20976


-- 
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-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org