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

rabbit_peer_discovery: Compute start time once #13490

Merged
merged 1 commit into from
Mar 12, 2025
Merged

Conversation

dumbbell
Copy link
Member

… and cache it.

Why

It happens at least in CI that the computed start time varies by a few seconds. I think this comes from the Erlang time offset which might be adjusted over time.

This affects peer discovery's sorting of RabbitMQ nodes which uses that start time to determine the oldest node. When the start time of a node changes, it could be considered the seed node to join by some nodes but ignored by the other nodes, leading to troubles with cluster formation.

... and cache it.

[Why]
It happens at least in CI that the computed start time varies by a few
seconds. I think this comes from the Erlang time offset which might be
adjusted over time.

This affects peer discovery's sorting of RabbitMQ nodes which uses that
start time to determine the oldest node. When the start time of a node
changes, it could be considered the seed node to join by some nodes but
ignored by the other nodes, leading to troubles with cluster formation.
@dumbbell dumbbell self-assigned this Mar 12, 2025
@dumbbell dumbbell marked this pull request as ready for review March 12, 2025 09:16
@dumbbell dumbbell merged commit ac4261b into main Mar 12, 2025
274 checks passed
@dumbbell dumbbell deleted the cache-start-time branch March 12, 2025 14:03
@michaelklishin
Copy link
Member

@Mergifyio backport v4.1.x v4.0.x

Copy link

mergify bot commented Mar 12, 2025

backport v4.1.x v4.0.x

✅ Backports have been created

michaelklishin added a commit that referenced this pull request Mar 12, 2025
rabbit_peer_discovery: Compute start time once (backport #13490)
michaelklishin added a commit that referenced this pull request Mar 12, 2025
rabbit_peer_discovery: Compute start time once (backport #13490)
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.

2 participants