Skip to content

Eliminate a flake in rabbit_fifo_dlx_integration_SUITE#15692

Merged
michaelklishin merged 2 commits intomainfrom
mk-rabbitmq-server-flakes-main-mar-10-2026
Mar 11, 2026
Merged

Eliminate a flake in rabbit_fifo_dlx_integration_SUITE#15692
michaelklishin merged 2 commits intomainfrom
mk-rabbitmq-server-flakes-main-mar-10-2026

Conversation

@michaelklishin
Copy link
Collaborator

Killing a Ra member transfers leadership most of the time but not all of the time: the same node can be re-elected.

If the purpose of the test is to transfer leadership and observe a certain DLX worker behavior, why not transfer leadership to a specific node instead?

Killing a Ra member transfers leadership most of the time
but not all of the time: the same node can be re-elected.

If the purpose of the test is to transfer leadership
and observe a certain DLX worker behavior, why not
transfer leadership to a specific node instead?
@michaelklishin michaelklishin changed the title Eliminate a flake in rabbit_fifo_dlx_integration Eliminate a flake in rabbit_fifo_dlx_integration_SUITE Mar 11, 2026
@michaelklishin michaelklishin added this to the 4.3.0 milestone Mar 11, 2026
@ansd
Copy link
Member

ansd commented Mar 11, 2026

If I remember correctly, the purpose was first stopping a node gracefully rabbit_ct_broker_helpers:stop_broker/2 and then killing another one. Should we use rabbit_ct_broker_helpers:kill_node/2 instead of true = rpc(Config, Leader0, erlang, exit, [Pid, kill]),?

The same test case also flakes for another reason: #15548 (comment)

@michaelklishin
Copy link
Collaborator Author

@ansd if the idea in the test is to specifically kill a member, then kill_node/2 makes sense and should be safer flakes-wise.

Otherwise transferring leadership cleanly makes more sense to me.

I have pushed a change that adopts kill_node/2.

@michaelklishin michaelklishin merged commit d14b908 into main Mar 11, 2026
184 checks passed
@michaelklishin michaelklishin deleted the mk-rabbitmq-server-flakes-main-mar-10-2026 branch March 11, 2026 20:32
mergify bot pushed a commit that referenced this pull request Mar 11, 2026
michaelklishin added a commit that referenced this pull request Mar 11, 2026
Eliminate a flake in `rabbit_fifo_dlx_integration_SUITE` (backport #15692)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants