Skip to content

Conversation

@MahsaSeifikar
Copy link
Contributor

@MahsaSeifikar MahsaSeifikar commented Nov 24, 2025

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.

Reviewers: Jonah Hooper jhooper@confluent.io, kevin-wu24 66326898+kevin-wu24@users.noreply.github.com, David Arthur mumrah@gmail.com

@github-actions github-actions bot added triage PRs from the community tools tests Test fixes (including flaky tests) small Small PRs labels Nov 24, 2025
Copy link
Contributor

@josefk31 josefk31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for change - LGTM :)

Copy link
Contributor

@kevin-wu24 kevin-wu24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@mumrah mumrah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the fix!

@github-actions github-actions bot removed the triage PRs from the community label Nov 25, 2025
@mumrah mumrah merged commit ce152e7 into apache:trunk Nov 25, 2025
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved small Small PRs tests Test fixes (including flaky tests) tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants