Skip to content

Conversation

@dumbbell
Copy link
Collaborator

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

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

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

3 participants