We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Panics when calling server.Start() again after a successful shutdown.
Shouldn't panic when calling server.Start() again after a successful shutdown.
v2.10.5
Mac
import natsserver "github.com/nats-io/nats-server/v2/test" func TestPanics(t *testing.T) { s := natsserver.RunServer(&natsserver.DefaultTestOptions) s.Shutdown() assert.PanicsWithError(t, "close of closed channel", func() { s.Start() }) }
The text was updated successfully, but these errors were encountered:
It happened to me when I updated my nats-server from v2.1.9 to v2.10.5.
nats-server
v2.1.9
I think it's because of this line: https://github.com/nats-io/nats-server/blob/main/server/server.go#L2343.
Sorry, something went wrong.
Fix for #4789 to allow a restart of a shutdown server instance.
74805e9
Signed-off-by: Derek Collison <derek@nats.io>
derekcollison
Successfully merging a pull request may close this issue.
Observed behavior
Panics when calling server.Start() again after a successful shutdown.
Expected behavior
Shouldn't panic when calling server.Start() again after a successful shutdown.
Server and client version
v2.10.5
Host environment
Mac
Steps to reproduce
The text was updated successfully, but these errors were encountered: