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

Downgrade tokio to 0.3.4 to avoid a time wheel panic #1453

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Dec 4, 2020

Motivation

zebrad panics in tokio after syncing to the tip. See #1452 and tokio-rs/tokio#2789 for details.

Solution

Downgrade tokio to 0.3.4.

I'm still testing this fix to see if it works. I've seen it happen twice in a few hours, so it should be pretty easy to work out if it is fixed.

Review

@dconnolly merged the tokio upgrade to 0.3.5 on 2020-12-02.
@hdevalence might also know if there's anything specific in 0.3.5 that we want.

This PR should be merged in the first alpha release, because the panic is pretty frequent.

Related Issues

Closes #1452.

Follow Up Work

Eventually we might want to submit a patch for tokio-rs/tokio#2789. It looks like they aren't checking the preconditions in every function that calls the underlying function that panics.

See tokio-rs/tokio#2789 for details. We were seeing this panic during
normal operation, not just at shutdown.
@teor2345 teor2345 added C-bug Category: This is a bug A-dependencies Area: Dependency file updates labels Dec 4, 2020
@teor2345 teor2345 added this to the First Alpha Release milestone Dec 4, 2020
@teor2345 teor2345 self-assigned this Dec 4, 2020
Copy link
Contributor

@dconnolly dconnolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

@teor2345 teor2345 merged commit b4a50fd into ZcashFoundation:main Dec 4, 2020
@Darksonn
Copy link

Darksonn commented Dec 6, 2020

If this only happens on 0.3.5 and not on 0.3.4, then it is probably not #2789. Please submit a new bug report to Tokio.

@teor2345
Copy link
Contributor Author

teor2345 commented Dec 6, 2020

If this only happens on 0.3.5 and not on 0.3.4, then it is probably not #2789. Please submit a new bug report to Tokio.

This bug also occurs on tokio 0.3.4, but a lot less frequently on my machine (20 minutes vs 72 hours).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Area: Dependency file updates C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic in tokio time wheel
3 participants