Skip to content

Cherry-picks for 2.10.19-RC.3#5745

Merged
neilalexander merged 18 commits intorelease/v2.10.19from
neil/21019rc3
Aug 6, 2024
Merged

Cherry-picks for 2.10.19-RC.3#5745
neilalexander merged 18 commits intorelease/v2.10.19from
neil/21019rc3

Conversation

@wallyqs
Copy link
Copy Markdown
Member

wallyqs commented Aug 2, 2024

we could include #5734 by also including #5690, since Go 1.23 will be out in a couple of weeks anyway

mauri870 and others added 14 commits August 6, 2024 14:39
According to https://go.dev/issues/62278 a concrete go version has to include
the patch number. The project declares the version as 1.21 which is invalid and
will result in an error:

	GOTOOLCHAIN="go1.20+auto" go1.21.5 mod tidy
	go: downloading go1.21 (linux/amd64)
	go: download go1.21 for linux/amd64: toolchain not available

Changed to 1.21.0 as this is the first actual release of go 1.21.

Signed-off-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Using `net.JoinHostPort()` properly surrounds IPv6 literals with square
brackets. Using `url.URL` ensures that hostnames will be properly encoded.

Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
…ed encryption keys

Signed-off-by: Neil Twigg <neil@nats.io>
This is roughly 4x faster since there are no interface conversions
and reduces allocations.

Signed-off-by: Neil Twigg <neil@nats.io>
This reduces allocations and potentially speeds up some hot paths, such
as in consumer waiting and gateway reply mapping.

Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
We'll still copy the string when asking the resolver, as we can't be
sure whether a resolver will want to hold onto the string or not, but
this should lead to improvements on the hot paths for routes and
gateways when the cache doesn't contain the entries we want.

Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
…to' which could lead to false positives.

However we need to pre-transform the 'from' token in case it contains transform direcrives, e.g. $1, {{}}.

Signed-off-by: Derek Collison <derek@nats.io>
When a slow consumer error is detected, the server will close the
connection. In some race situations, it could be that the subscription
interest is left intact, which would cause routed servers to continue
routing messages although the interest should have been gone.

The subscription could still be seen in the monitoring subscriptions
list (when displaying with details), referencing a client connection
that would be in the closed connection state.
The monitoring route page of the other servers would still indicate
that there is interest for this subject on the origin server.

Resolves #5539

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This avoids the alloc and copy and still allows the connection
to be properly released.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
wallyqs and others added 4 commits August 6, 2024 15:42
This is a relaxed version of v2.11s change
(https://github.com/nats-io/nats-server/pull/5676/files) which still
allows cluster names with spaces in gateways and clusters.

---------

Signed-off-by: Waldemar Quevedo <wally@nats.io>
This is a simpler PR than #5749 which just limits at the point of writing
rather than at the point of buffering/framing. It allows us to set the
deadline for each batch.

Signed-off-by: Neil Twigg <neil@nats.io>
Signed-off-by: Neil Twigg <neil@nats.io>
@wallyqs wallyqs marked this pull request as ready for review August 6, 2024 19:26
@wallyqs wallyqs requested a review from a team as a code owner August 6, 2024 19:26
@neilalexander neilalexander merged commit 23f030e into release/v2.10.19 Aug 6, 2024
@neilalexander neilalexander deleted the neil/21019rc3 branch August 6, 2024 21:52
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.

5 participants