Skip to content

Fix internal JS clients disconnecting on account max connection updates#7258

Merged
neilalexander merged 2 commits intomainfrom
acc-js-reconnect
Sep 8, 2025
Merged

Fix internal JS clients disconnecting on account max connection updates#7258
neilalexander merged 2 commits intomainfrom
acc-js-reconnect

Conversation

@wallyqs
Copy link
Copy Markdown
Member

@wallyqs wallyqs commented Sep 4, 2025

Fixes a condition where when running into a account max connections limit, sometimes a number of JetStream streams would have lost interest after getting a JETSTREAM - maximum account active connections exceeded error.

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

Signed-off-by: Waldemar Quevedo <wally@nats.io>
@wallyqs wallyqs requested a review from a team as a code owner September 4, 2025 13:43
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

Copy link
Copy Markdown
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

Should this just be a helper so we do not have to go through list twice?

@derekcollison
Copy link
Copy Markdown
Member

Right now we loop through that list twice - which if big could be costly.

Signed-off-by: Waldemar Quevedo <wally@nats.io>
@wallyqs
Copy link
Copy Markdown
Member Author

wallyqs commented Sep 4, 2025

updated with a helper to avoid looping twice over clients.

Copy link
Copy Markdown
Member

@derekcollison derekcollison 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 e80bea2 into main Sep 8, 2025
69 of 70 checks passed
@neilalexander neilalexander deleted the acc-js-reconnect branch September 8, 2025 09:34
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.

4 participants