Skip to content

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Aug 18, 2025

Make sure that only newest connections are disconnected on JWT updates.

Signed-off-by: Waldemar Quevedo wally@nats.io

@wallyqs wallyqs requested a review from a team as a code owner August 18, 2025 22:45
@wallyqs wallyqs force-pushed the max-conns-err branch 3 times, most recently from c0e945e to 93f42e4 Compare August 18, 2025 22:59
@wallyqs wallyqs requested a review from jnmoyne August 18, 2025 23:18
@wallyqs wallyqs marked this pull request as draft August 18, 2025 23:36
@wallyqs wallyqs marked this pull request as ready for review August 19, 2025 02:57
@wallyqs wallyqs marked this pull request as draft August 19, 2025 05:58
Behavior introduced in v2.10.19, but original design was to disconnect
the newest ones so reverting back to original behavior.
This would have happened on account JWT updates, also added coverage
for when enforcing cluster wide limits.

Signed-off-by: Waldemar Quevedo <wally@nats.io>
@wallyqs wallyqs marked this pull request as ready for review August 19, 2025 06:54
@wallyqs wallyqs changed the title Fix account updates disconnecting oldest connections Fix account jwt updates disconnecting oldest connections Aug 19, 2025
@wallyqs wallyqs changed the title Fix account jwt updates disconnecting oldest connections Fix account JWT updates disconnecting oldest connections Aug 19, 2025
Copy link
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 951d067 into main Aug 19, 2025
48 checks passed
@neilalexander neilalexander deleted the max-conns-err branch August 19, 2025 08:55
neilalexander added a commit that referenced this pull request Aug 19, 2025
…irst (#7185)

#7181 mentioned
#5757 introduced a regression
as observed by `TestAccountMaxConnectionsDisconnectsNewestFirst`.

However, that bug has been in there since 2.9.0 or earlier, so it can't
be attributed to that PR. Both tests are failing all the way to that
version. `TestAccountUpdateRemoteServerDisconnectsNewestFirst` was
actually fixed since #5757.

[skip ci]

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
neilalexander added a commit that referenced this pull request Aug 20, 2025
Includes the following:

- #7172
- #7177
- #7178
- #7181
- #7185
- #7186

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.

4 participants