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

cannot gracefully shutdown #488

Open
qizhou opened this issue Nov 19, 2019 · 1 comment
Open

cannot gracefully shutdown #488

qizhou opened this issue Nov 19, 2019 · 1 comment
Assignees

Comments

@qizhou
Copy link

qizhou commented Nov 19, 2019

Setup a cluster with latest git commit 2cecca6, synced 5530 blocks and try to shutdown with CTRL+C. The cluster cannot gracefully shutdown (shutting down forever)

image

@syntrust
Copy link
Contributor

It is hard to reproduce in a dev environment. Most likely it caused by the stop operation of p2p service is blocked by active peer connections. A normal shutdown would be like:

^CINFO [11-20|10:39:44.731] Got interrupt, shutting down... 
INFO [11-20|10:39:44.731] grpc endpoint closed                     url=192.168.183.173:38191
INFO [11-20|10:39:44.731] public HTTP endpoint closed              url=http://127.0.0.1:38391
INFO [11-20|10:39:44.731] private HTTP endpoint closed             url=http://127.0.0.1:38491
INFO [11-20|10:39:44.731] Stopping Master protocol 
INFO [11-20|10:39:44.732] cluster protocol stopped 
INFO [11-20|10:39:44.732] Blockchain manager stopped 
INFO [11-20|10:39:44.734] stoped P2P networking   

Ctrl+c 10 times to cause panic, and we can get the full debug trace.

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

No branches or pull requests

3 participants