-
Notifications
You must be signed in to change notification settings - Fork 100
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 in tokio time wheel #1452
Comments
I just saw this panic again about 20 minutes after sync reached the tip. Based on my testing of #1453, it looks like tokio-rs/tokio#3080 (or a similar change) made these panics a lot more frequent for us. |
This bug also occurs on tokio 0.3.4, but a lot less frequently on my machine (20 minutes vs 72 hours). |
Dropping a timer on the millisecond that it was scheduled for, when it was on the pending list, could result in a panic previously, as we did not record the pending-list state in cached_when. Hopefully fixes: ZcashFoundation/zebra#1452
We have a potential fix here: tokio-rs/tokio#3229 (review) Are you able to check this PR to see if it fixes your case? |
Dropping a timer on the millisecond that it was scheduled for, when it was on the pending list, could result in a panic previously, as we did not record the pending-list state in cached_when. Hopefully fixes: ZcashFoundation/zebra#1452
Updates the tokio dependency to the commit that merged tokio-rs/tokio#3229, which should fix the time wheel panic in ZcashFoundation#1452.
I just opened #1511, and I'm testing it now. We'll have a pretty good idea if it's better than tokio 0.3.5 after a few hours, and we'll know if it's better than tokio 0.3.4 after a few days. (Assuming there aren't any other panics in Zebra!) |
Updates the tokio dependency to the commit that merged tokio-rs/tokio#3229, which should fix the time wheel panic in #1452.
I've been running |
Analysis
This looks like tokio-rs/tokio#2789, which seems to happen due to a race condition in the multithreaded runtime.
Some users have reported that it happens during shutdown, but from the logs, it looks like Zebra was just syncing with a small number of peers.
Versions
zebrad
commit ef7e91c onmain
, 2020-12-04 (#1443).zebrad
commit 548be51 in #1444, 2020-12-03.This commit corresponds to rebased commit 7f823e7 partway through #1444, the most recent shared commit with
main
is c0bbac8 (#1441).Platform
Linux ... 5.4.75 #1-NixOS SMP Thu Nov 5 10:43:38 UTC 2020 x86_64 GNU/Linux
Error
Metadata
Logs
Click the triangle to show detailed logs:
SpanTrace:
The text was updated successfully, but these errors were encountered: