You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.
Once in a blue moon it appears that KayVee can hang on shutdown. The problem has been traced down to a failure the underlying Netty NioWorkerPool to shutdown cleanly (it appears to be waiting for a CountdownLatch to reach 0 - a condition that, for some reason, never happens).
If I call System.exit in a Netty I/O thread the following happens:
The thread locks the Shutdown.class object
The Jetty ShutdownThread is invoked, which starts running the shutdown tasks we've registered
One of the shutdown tasks is RaftAgent.stop(), which waits for all I/O threads to complete
And...deadlock. This is because the netty I/O thread is waiting for all the shutdown tasks to run, but they won't complete because one of the tasks is to actually shut down the I/O thread.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Once in a blue moon it appears that KayVee can hang on shutdown. The problem has been traced down to a failure the underlying Netty NioWorkerPool to shutdown cleanly (it appears to be waiting for a CountdownLatch to reach 0 - a condition that, for some reason, never happens).
The full stack is at: KayVee 0.1.1 Shutdown Hang Stack
The text was updated successfully, but these errors were encountered: