-
Notifications
You must be signed in to change notification settings - Fork 218
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
fixed bug in batched pipeline #288
Conversation
() => client.hmset("hash1", Map("field1" -> Upper("val1"), "field2" -> Upper("val2"))), | ||
() => client.hmset("hash2", Map("field1" -> Upper("val1"), "field2" -> Upper("val2")))(formatUpper), | ||
() => client.hmget("hash1", "field1", "field2"), | ||
() => client.hmget("hash2", "field1", "field2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't check the return value of hmget - is the assumption that as long as it executes with error, it is correct (i.e. there is test coverage for formatting and parsing elsewhere)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return values are all returned at once in batch. Please check the test cases in PipelineSpec
@noahlz I pushed the fix - had to switch to binary protocol for the batching. Also updated test cases. Please let me know if this works. |
Ok, thanks - will test shortly. In the meantime, should we close and delete the branch for #290 ? |
I'm working through a problem where ZADD does not insert strings. I suspect because my predecessor in our application eschewed the default format and parse implicits. I.e. we have a wrapper classes
and then
In redis cli:
I'm working through this to figure out what's wrong. Otherwise, your changes look good. I added test case to try to reproduce the issue on my side and could not, so clearly we are Not Using Format and Parse Implicits Correctly. |
…java string values properly. (#291)
When sending commands in batch the
Format
related to the arguments were not being sent over. Fixed it.