Skip to content

rabbit_peer_discovery: Compute start time once (backport #13490) #13497

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
Mar 12, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Mar 12, 2025

… 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.


This is an automatic backport of pull request #13490 done by Mergify.

... 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.

(cherry picked from commit e72d911)
@michaelklishin michaelklishin added this to the 4.0.8 milestone Mar 12, 2025
@michaelklishin michaelklishin merged commit 321abb6 into v4.0.x Mar 12, 2025
270 of 271 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.0.x/pr-13490 branch March 12, 2025 19:18
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