-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherry-picks for 2.10.16-RC.1 #5445
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added a test that demonstrated the following data race: ``` ================== WARNING: DATA RACE Write at 0x00c00030cbf8 by goroutine 206: github.com/nats-io/nats-server/v2/server.(*client).processRouteConnect() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/route.go:2747 +0x2ac github.com/nats-io/nats-server/v2/server.(*client).processConnect() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/client.go:2147 +0xdec github.com/nats-io/nats-server/v2/server.(*client).parse() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/parser.go:942 +0xe90 github.com/nats-io/nats-server/v2/server.(*client).readLoop() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/client.go:1389 +0x13a4 github.com/nats-io/nats-server/v2/server.(*Server).createRoute.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/route.go:1803 +0x38 github.com/nats-io/nats-server/v2/server.(*Server).startGoRoutine.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:3805 +0x58 Previous read at 0x00c00030cbf8 by goroutine 199: github.com/nats-io/nats-server/v2/server.(*Server).isClusterNameDynamic() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:978 +0x164 github.com/nats-io/nats-server/v2/server.(*client).processRouteConnect() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/route.go:2741 +0x170 github.com/nats-io/nats-server/v2/server.(*client).processConnect() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/client.go:2147 +0xdec github.com/nats-io/nats-server/v2/server.(*client).parse() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/parser.go:942 +0xe90 github.com/nats-io/nats-server/v2/server.(*client).readLoop() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/client.go:1389 +0x13a4 github.com/nats-io/nats-server/v2/server.(*Server).createRoute.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/route.go:1803 +0x38 github.com/nats-io/nats-server/v2/server.(*Server).startGoRoutine.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:3805 +0x58 Goroutine 206 (running) created at: github.com/nats-io/nats-server/v2/server.(*Server).startGoRoutine() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:3803 +0x160 github.com/nats-io/nats-server/v2/server.(*Server).createRoute() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/route.go:1803 +0xa38 github.com/nats-io/nats-server/v2/server.(*Server).startRouteAcceptLoop.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/route.go:2527 +0x48 github.com/nats-io/nats-server/v2/server.(*Server).acceptConnections.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:2745 +0x70 github.com/nats-io/nats-server/v2/server.(*Server).startGoRoutine.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:3805 +0x58 Goroutine 199 (running) created at: github.com/nats-io/nats-server/v2/server.(*Server).startGoRoutine() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:3803 +0x160 github.com/nats-io/nats-server/v2/server.(*Server).createRoute() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/route.go:1803 +0xa38 github.com/nats-io/nats-server/v2/server.(*Server).startRouteAcceptLoop.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/route.go:2527 +0x48 github.com/nats-io/nats-server/v2/server.(*Server).acceptConnections.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:2745 +0x70 github.com/nats-io/nats-server/v2/server.(*Server).startGoRoutine.func1() /Users/ik/dev/go/src/github.com/nats-io/nats-server/server/server.go:3805 +0x58 ================== ``` Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Signed-off-by: Derek Collison <derek@nats.io>
Signed-off-by: Derek Collison <derek@nats.io>
We need to pull in all 3 for lexer fixes. |
derekcollison
approved these changes
May 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Includes: