-
Notifications
You must be signed in to change notification settings - Fork 893
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
Tests relying on reqwest::Client
may fail with "dispatch task is gone: runtime dropped the dispatch task"
#3852
Comments
suite::cli_exact::check_updates_with_update
failed with "dispatch task is gone: runtime dropped the dispatch task"reqwest::Client
may fail with "dispatch task is gone: runtime dropped the dispatch task"
According to the error message format and my IDE searching the current codebase, this is a Lines 154 to 190 in 6d43761
|
Hi @rami3l, I also encountered the same issue with tests, searching for the cause, I came across this thread on the rust-lang forums. We started encountering the problem over at lakekeeper (lakekeeper/lakekeeper#548) after making our clients static with lazy-locks like you are doing here, I think that is the cause for the failures you've been observing. |
@twuebi Thanks a lot for the info! I think your observation is likely relevant as we currently use in-process testing for some commands even if it appears to be out-of-process (#3891). It could indeed be possible that something like 2261e26 is required for Anyway, I'll find some time to look into this. |
Verification
Problem
This is causing irregular failures for different CI platforms:
The error message here is identical (although the exact test that failed might differ):
Notes
Possibly related to hyperium/hyper#2312, Azure/azure-sdk-for-rust#1550 or fussybeaver/bollard#387 (comment).
I'm pretty sure that #3367 has caused this.
The text was updated successfully, but these errors were encountered: