-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Tokio v1.0.1 with redis - task mixing #3500
Comments
Can you perhaps provide more detail about what the issue is? It's very unclear from this description. What do you mean by "async tasks mixed"? |
We have async fn:
That called ~10 times per second. And sometimes (in 10-20% cases) this line says: Redis-pool have logic inside, that sends |
This sounds like a bug in the redis crate you are using. You should open an issue there, although you can include a link to this issue in the new issue. |
Closing as it does not seem to be a Tokio bug. If this assessment is incorrect, we can reopen. |
Version
cargo tree | grep redis
:cargo tree | grep bb8
:Platform
Linux videotest01.dev.wb.ru 4.19.0-13-cloud-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
Description
After moving to Tokio v1.0.1 our "reddis-proxy" service start to fail with "magic" errors:
Response was of incompatible type: "Response type not hashmap compatible" (response was status("PONG"))
This error happens when we call
let response: redis::RedisResult<collections::HashMap<String, String>> = conn.hgetall(key).await;
Looks like async tasks mixed somehow and
hgetall
get response fromPING
request. Do not know where to dig into, will try with newer version of tokio...The text was updated successfully, but these errors were encountered: