-
Notifications
You must be signed in to change notification settings - Fork 1.1k
net: Spawn network backend as essential task #10847
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
| // most appropriate thing to do for the network future is to shut down too. | ||
| None => { | ||
| debug!("Block import stream has terminated, shutting down the network future."); | ||
| warn!("Block import stream has terminated, shutting down the network future. Ignore if the node is stopping."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we would see this on normal shutdown also some times?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I would expect to see this pop in the logs a few times during panics / closing of other essential tasks
I've tried to reproduce this locally by interurpting a running substrate node, however these logs did not appear locally:
2026-01-23 13:55:54.012 INFO tokio-runtime-worker babe: 🔖 Pre-sealed block for proposal at 7. Hash now 0x6e7d798d7ea35d48089a6cdbbb5dfc2c5f5086bb7a3b4cbbd3a81531d8ebb5c6, previously 0xca0dd9d74932c11638c1e4e568dfb4d0f3f47cc57022da6524f7686d28d29e84.
2026-01-23 13:55:54.013 INFO tokio-runtime-worker substrate: 🏆 Imported #7 (0xeb5a…8b99 → 0x6e7d…b5c6)
^C2026-01-23 13:55:54.830 ERROR tokio-runtime-worker sc_service::task_manager: Essential task `txpool-background` failed. Shutting down service.
| // Drive the network. Shut down the network future if `NetworkWorker` has terminated. | ||
| _ = network_run => { | ||
| debug!("`NetworkWorker` has terminated, shutting down the network future."); | ||
| warn!("`NetworkWorker` has terminated, shutting down the network future. Ignore if the node is stopping."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question.
|
/cmd prdoc --audience node_dev --bump patch |
…e_dev --bump patch'
This PR spawns the network backends as essential (libp2p / litep2p).
When the network future exits, it will bring down the whole process.
import_notif_streamDiscovered during: