Skip to content
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

rabbitmq_peer_discovery_etcd: Wait for etcd start in system_SUITE #12985

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

dumbbell
Copy link
Member

@dumbbell dumbbell commented Dec 19, 2024

Why

It was possible that testcases were executed before the etcd daemon was ready, leading to test failures.

How

There was already a sanity check to verify that the etcd daemon was working correctly, but it was itself a testcase.

This patch moves this code to the etcd start code to wait for it to be ready.

This replaces the previous workaround of waiting for 2 seconds.

While here, log anything printed to stdout/stderr by etcd after it exited.

Fixes #12981.

@dumbbell dumbbell self-assigned this Dec 19, 2024
@dumbbell dumbbell force-pushed the wait-for-etcd-start branch from 93bdebd to 27f928b Compare December 19, 2024 18:44
[Why]
It was possible that testcases were executed before the etcd daemon was
ready, leading to test failures.

[How]
There was already a santy check to verify that the etcd daemon was
working correctly, but it was itself a testcase.

This patch moves this code to the etcd start code to wait for it to be
ready.

This replaces the previous workaround of waiting for 2 seconds.

While here, log anything printed to stdout/stderr by etcd after it
exited.

Fixes #12981.
@dumbbell dumbbell force-pushed the wait-for-etcd-start branch from 27f928b to d54b2bf Compare December 19, 2024 18:46
@dumbbell dumbbell marked this pull request as ready for review December 19, 2024 20:28
@dumbbell dumbbell merged commit f020eb2 into main Dec 19, 2024
271 checks passed
@dumbbell dumbbell deleted the wait-for-etcd-start branch December 19, 2024 20:28
@michaelklishin
Copy link
Member

@Mergifyio backport v4.0.x

Copy link

mergify bot commented Dec 19, 2024

backport v4.0.x

✅ Backports have been created

michaelklishin added a commit that referenced this pull request Dec 20, 2024
rabbitmq_peer_discovery_etcd: Wait for etcd start in system_SUITE (backport #12985)
@ansd
Copy link
Member

ansd commented Dec 20, 2024

Thank you @dumbbell !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wait for etcd listener before starting tests
3 participants