Skip to content

[FIXED] NRG: Monotonic heartbeat and quorum tracking#6999

Merged
neilalexander merged 1 commit intomainfrom
neil/nrgpstime
Jun 23, 2025
Merged

[FIXED] NRG: Monotonic heartbeat and quorum tracking#6999
neilalexander merged 1 commit intomainfrom
neil/nrgpstime

Conversation

@neilalexander
Copy link
Copy Markdown
Member

Converting the timestamps to UnixNano meant that all of these operations were using wall-clock rather than monotonic time, which meant that these operations were not safe against wall-clock drifts or NTP adjustments. This could result in unexpected loss of quorum.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner June 23, 2025 10:27
Copy link
Copy Markdown
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Converting the timestamps to `UnixNano` meant that all of these operations
were using wall-clock rather than monotonic time, which meant that these
operations were not safe against wall-clock drifts or NTP adjustments.
This could result in unexpected loss of quorum.

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander merged commit fabc327 into main Jun 23, 2025
172 of 180 checks passed
@neilalexander neilalexander deleted the neil/nrgpstime branch June 23, 2025 11:37
@wallyqs wallyqs changed the title NRG: Monotonic heartbeat and quorum tracking [FIXED] NRG: Monotonic heartbeat and quorum tracking Jun 24, 2025
neilalexander added a commit that referenced this pull request Jun 24, 2025
Includes the following:

- #6990
- #6967
- #6995
- #6999
- #7001

Signed-off-by: Neil Twigg <neil@nats.io>
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