-
Notifications
You must be signed in to change notification settings - Fork 538
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
StreamReadReply silently discards data #977
Comments
I think the issue is you're using |
Thanks, that seems to be the issue. But is it expected behavior that an empty reply is parsed from the response data, instead of an error? |
If you define your return type as
It makes sense to me that a value of an unexpected dimension would trigger an error in the |
When the list in a bulk value contains an odd number of elements, the last element would be discarded by MapIter, discarding the data. The list is now checked to be of even lenth during initialization.
When the list in a bulk value contains an odd number of elements, the last element would be silently discarded by MapIter. The list is now checked to be of even lenth during initialization.
Sure . Root cause seems to be in HashMap conversion #978. |
I am trying to write and read a redis stream using
xadd
andxread
. While I can see that the data exists in redis, I get an emptyStreamReadReply
fromxread_options
:If I do not convert the query into a
StreamReadReply
, but print it as aredis::Value
, i can see that some data is returned, but it is wrapped in one moreValue::Bulk
thenredis-rs
expects. The data is silently discarded during conversion toStreamReadReply
.Example:
I would expect
redis-rs
to at least return an error instead of discarding the data.The text was updated successfully, but these errors were encountered: