Skip to content

[fix][test] Fix flaky ResendRequestTest.testFailoverSingleAckedNormalTopic#25343

Open
merlimat wants to merge 2 commits intoapache:masterfrom
merlimat:fix/flaky-ResendRequestTest
Open

[fix][test] Fix flaky ResendRequestTest.testFailoverSingleAckedNormalTopic#25343
merlimat wants to merge 2 commits intoapache:masterfrom
merlimat:fix/flaky-ResendRequestTest

Conversation

@merlimat
Copy link
Contributor

@merlimat merlimat commented Mar 17, 2026

Flaky test failure

ResendRequestTest.testFailoverSingleAckedNormalTopic:281 expected [0] but found [10]

Summary

  • Fix flaky ResendRequestTest.testFailoverSingleAckedNormalTopic which fails because messages are produced before the failover dispatcher has settled the consumer assignment.
  • Added an Awaitility wait to ensure both consumers are registered and consumer-1 is confirmed as the active consumer before producing messages.

Documentation

  • doc-not-needed
    (Your PR doesn't need any doc update)

Matching PR in forked repository

No response

Tip

Add the labels ready-to-test and area/test to trigger the CI.

…Topic

The test assumes consumer-1 is the active failover consumer, but
messages are produced before the dispatcher has settled the consumer
assignment. Add an Awaitility wait for the dispatcher to have both
consumers registered and consumer-1 as the active consumer before
producing messages.
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/test doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant