-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Network worker not shutting down #5775
Comments
Reopening until we can confirm this is fixed by upgrading libp2p, see #5642 (comment). |
This is still an issue in the latest release as confirmed by seamonkey |
Might be resolved in the next node release, see fix nodejs/node#51526 and another related issue tinylibs/tinypool#54 |
@nflaig I haven't heard of this happening lately, stale? |
This is kinda related to #6053 as well, I haven't seen this myself in a while which is good because hanging work was a pain to deal with. Should be observed more closely and can probably close it we also wanna consider removing the timeout if we don't see it anymore lodestar/packages/beacon-node/src/network/core/networkCore.ts Lines 269 to 272 in cf72219
|
Describe the bug
The network worker thread is not shutting down in some cases.
Force closing (
kill
) does not help either because worker does receive signal.It is pretty clear based on observed logs that the issue is the network worker.
"terminating network worker" is logged
lodestar/packages/beacon-node/src/network/core/networkCoreWorkerHandler.ts
Line 129 in 5116493
but "terminated network worker" is not
lodestar/packages/beacon-node/src/network/core/networkCoreWorkerHandler.ts
Line 131 in 5116493
I checked the log files, there is nothing that peaks out, likely just the same issue we see on the main thread with libp2p
Can likely be resolved by calling
process.exit
on worker explicitly or force closing it using another approach.Expected behavior
Network worker should shut down cleanly and not hang the main process.
Steps to reproduce
Run Lodestar beacon node with
--network.useWorker true
flag.Additional context
The problem seems to be with libp2p which in the end must take care of closing all connections / removing tcp listeners. There are several closed but also open issues regarding connections not being closed properly.
This comment libp2p/js-libp2p#436 (comment) summarizes open tasks but there was no progress in a while.
Operating system
Linux
Lodestar version or commit hash
ec81531
The text was updated successfully, but these errors were encountered: