Skip to content

[FIXED] NRG: Reject lower term as candidate#7239

Merged
neilalexander merged 1 commit intomainfrom
maurice/nrg-reject-as-candidate
Sep 1, 2025
Merged

[FIXED] NRG: Reject lower term as candidate#7239
neilalexander merged 1 commit intomainfrom
maurice/nrg-reject-as-candidate

Conversation

@MauriceVanVeen
Copy link
Copy Markdown
Member

Responding to a lower term was removed in #7209, as it assumed the leader would already respond with this information. However, if this server is a candidate, it would need to be the one rejecting and sending back the response.

This PR fixes that, and adds a test to ensure it stays that way.

Signed-off-by: Maurice van Veen github@mauricevanveen.com

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner September 1, 2025 07:18
Copy link
Copy Markdown
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

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

LGTM

@neilalexander neilalexander merged commit a281678 into main Sep 1, 2025
69 of 70 checks passed
@neilalexander neilalexander deleted the maurice/nrg-reject-as-candidate branch September 1, 2025 08:37
MauriceVanVeen pushed a commit that referenced this pull request Sep 3, 2025
Responding to a lower term was removed in
#7209, as it assumed the
leader would already respond with this information. However, if this
server is a candidate, it would need to be the one rejecting and sending
back the response.

This PR fixes that, and adds a test to ensure it stays that way.

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
@wallyqs wallyqs changed the title NRG: Reject lower term as candidate [FIXED] NRG: Reject lower term as candidate Sep 3, 2025
neilalexander added a commit that referenced this pull request Sep 8, 2025
Includes the following:
- #7200
- #7201
- #7202
- #7209
- #7210
- #7211
- #7213
- #7212
- #7216
- #7217
- #7230
- #7239
- #7246
- #7248
-
8241a15,
specifically delayed errors that are not JS API errors
- #7158 (not containing
2.12-specific changes)
- #7233
- #7255
- #7249
- #7259
- #7265
- #7273 (not including Go
1.25.x)
- #7258
- #7222

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
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