Skip to content

Reduce Khepri test flakes #11917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Reduce Khepri test flakes #11917

merged 1 commit into from
Aug 6, 2024

Conversation

ansd
Copy link
Member

@ansd ansd commented Aug 6, 2024

Test case rabbit_mqtt_qos0_queue_kill_node flaked because after an MQTT client subscribes on node 0, RabbitMQ returns success and replicated the new binding to node 0 and node 1, but not yet to node 2. Another MQTT client then publishes on node 2 without the binding being present yet on node 2, and the message therefore isn't routed.

This commit attempts to eliminate this flake.
It adds a function to rabbit_ct_broker_helpers which waits until a given node has caught up with the leader node.
We can reuse that function in future to eliminate more test flakes.

Test case rabbit_mqtt_qos0_queue_kill_node flaked because after an
MQTT client subscribes on node 0, RabbitMQ returns success
and replicated the new binding to node 0 and node 1, but not
yet to node 2. Another MQTT client then publishes on node 2
without the binding being present yet on node 2, and the
message therefore isn't routed.

This commit attempts to eliminate this flake.
It adds a function to rabbit_ct_broker_helpers which waits until a given
node has caught up with the leader node.
We can reuse that function in future to eliminate more test flakes.
@mergify mergify bot added the bazel label Aug 6, 2024
@ansd ansd merged commit 8ba3649 into main Aug 6, 2024
191 checks passed
@ansd ansd deleted the khepri-flakes branch August 6, 2024 20:01
michaelklishin added a commit that referenced this pull request Aug 6, 2024
Reduce Khepri test flakes (backport #11917) (backport #11924)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant