-
Notifications
You must be signed in to change notification settings - Fork 30
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 when an unexpected message is received #27
Comments
This issue can only happen if, for some reason, Redis sends back more items of data than the client requests. This can happen if certain commands, like I'm willing to change this, but I'm keen to avoid any hidden failures. Ideally the consumers will be informed, but this precise error only happens at the instant where nothings listening. Potential solutions:
|
@benashford The version of Redis that I'm using server-side is the 3.0 and I'm only using the expected right commands for the PairedConnection and not any other command that can run in multiple data, that's the weird thing here, maybe it's a bug. What we can do as the best solution then? A part informing the caller that an unrecoverable error has occurred? We can't panic here without reporting it in the doc so, after a filter, we have to manage the case that the client receives an unexpected message anyway without panicking. What do you think? |
Yes, that does sound like it could be a bug. Has it only happened the once, or is it repeatable? And if it's repeatable is it possible to extract a test case? |
Unfortunately I can't try to reproduce it again because I'm running an important Telegram bot with an intensive use of SET command, running 24h a day... I'm just using the SET command and anything else, I think that is a bug of the Redis version but this can't run in a panic client-side. My fork it's currently running but I'm not monitoring the error, I can do it in the next release if this can help. |
@benashford I think that a |
I noticed an issue and I can't explain why. My application was using this crate but I encountered a panic last night, inspecting the code I noticed this line:
redis-async-rs/src/client/paired.rs
Line 134 in a369e5b
Why there is a
panic!
here and not anerror!
? In the doc I can't see anything that says that the crate can panic in some circumstances.Is this an expected behaviour? Can this be fixed?
The text was updated successfully, but these errors were encountered: