Skip to content
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

Panic when stopping etcd process #8916

Closed
hectorj2f opened this issue Nov 24, 2017 · 2 comments
Closed

Panic when stopping etcd process #8916

hectorj2f opened this issue Nov 24, 2017 · 2 comments
Labels

Comments

@hectorj2f
Copy link

etcd v3.2.9

When stopping etcd, we always get the following panic error. Is there a way of gracefully stopping etcd ?

panic: Drain() is not implemented

goroutine 101105 [running]:
github.com/coreos/etcd/cmd/vendor/google.golang.org/grpc/transport.(*serverHandlerTransport).Drain(0xc4217b18c0)
	/home/gyuho/etcd/release/etcd/gopath/src/github.com/coreos/etcd/cmd/vendor/google.golang.org/grpc/transport/handler_server.go:374 +0x64
github.com/coreos/etcd/cmd/vendor/google.golang.org/grpc.(*Server).GracefulStop(0xc420464620)
	/home/gyuho/etcd/release/etcd/gopath/src/github.com/coreos/etcd/cmd/vendor/google.golang.org/grpc/server.go:1006 +0x2e6
github.com/coreos/etcd/cmd/vendor/github.com/coreos/etcd/embed.(*Etcd).Close.func2(0xc424b04300, 0xc4202f5cc0)
	/home/gyuho/etcd/release/etcd/gopath/src/github.com/coreos/etcd/cmd/vendor/github.com/coreos/etcd/embed/etcd.go:201 +0x54
created by github.com/coreos/etcd/cmd/vendor/github.com/coreos/etcd/embed.(*Etcd).Close
	/home/gyuho/etcd/release/etcd/gopath/src/github.com/coreos/etcd/cmd/vendor/github.com/coreos/etcd/embed/etcd.go:202 +0x20a
@gyuho
Copy link
Contributor

gyuho commented Nov 27, 2017

Suggestion from gRPC team grpc/grpc-go#1384 (comment)

@gyuho
Copy link
Contributor

gyuho commented Nov 29, 2017

Easy to repro: start a single node etcd cluster with TLS. Spawn a watcher. Stop etcd.

jamesdphillips added a commit to jamesdphillips/etcd that referenced this issue Dec 7, 2017
jamesdphillips added a commit to jamesdphillips/etcd that referenced this issue Dec 7, 2017
jamesdphillips added a commit to jamesdphillips/etcd that referenced this issue Dec 7, 2017
Fixes etcd-io#8916
Provided solution (attempts to) implements suggestion from gRPC team:  grpc/grpc-go#1384 (comment)
jamesdphillips added a commit to jamesdphillips/etcd that referenced this issue Dec 7, 2017
Avoid panic on shut down gRPC Server when TLS configuration is present.
Provided solution (attempts to) implements suggestion from gRPC team: grpc/grpc-go#1384 (comment).

Fixes etcd-io#8916
jamesdphillips added a commit to jamesdphillips/etcd that referenced this issue Dec 7, 2017
Avoid panic when stopping gRPC Server if TLS configuration is present.
Provided solution (attempts to) implement suggestion from gRPC team: grpc/grpc-go#1384 (comment).

Fixes etcd-io#8916
gyuho pushed a commit to gyuho/etcd that referenced this issue Dec 7, 2017
Avoid panic when stopping gRPC Server if TLS configuration is present.
Provided solution (attempts to) implement suggestion from gRPC team: grpc/grpc-go#1384 (comment).

Fixes etcd-io#8916
gyuho pushed a commit to gyuho/etcd that referenced this issue Dec 8, 2017
Avoid panic when stopping gRPC Server if TLS configuration is present.
Provided solution (attempts to) implement suggestion from gRPC team: grpc/grpc-go#1384 (comment).

Fixes etcd-io#8916
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

3 participants