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

fix: dropping an op future at yield_now() after it completed causes panic #39

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

problame
Copy link
Collaborator

Before this PR, dropping an operation future while it's in the tokio::yield_now would cause a panic.

This PR contains two commits: the first one reproduces the issue in a test.
The second one fixes the issue and repurposes the reproducer as a regression test.

Stacked atop #38

fixes #37

@problame problame requested a review from koivunej January 31, 2024 19:09
Copy link

@jcsp jcsp left a comment

Choose a reason for hiding this comment

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

Makes sense: we're pulling up the call of the completion to before the places where we potentially yield.

Copy link
Member

@koivunej koivunej left a comment

Choose a reason for hiding this comment

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

Nice regression test.

Base automatically changed from problame/fix-iss-37/1 to main January 31, 2024 21:21
@problame problame force-pushed the problame/fix-iss-37/2 branch 2 times, most recently from 3a71262 to 52b3484 Compare January 31, 2024 21:24
@problame
Copy link
Collaborator Author

Rebased & addressed review comments, including cfg(test)ing everything.

@problame problame merged commit bf5f0fa into main Jan 31, 2024
3 checks passed
@problame problame deleted the problame/fix-iss-37/2 branch January 31, 2024 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic observed in staging
3 participants