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
Fix unhandled case of empty cs buckets response #144
Conversation
the PB translation generates a single token instead of a default record when the entire message has only default values. This was uncovered in 1.4.4, where the cs buckets query was broken.
Is there a related riak_test (or giddyup failure) where this is exercised? |
There is a specific commit in the 1.4 history for Riak where the query is broken and you hit this error. I'll post it here in a bit. |
It's basho/riak_kv@0503431. Basically get riak 1.4.2 tags and that, and you'll hit this as the query returns nothing during the test and there's a function clause error there. |
@engelsanchez Thanks. Honestly we should probably (for 2.0?) fix that endpoint. It shouldn't be sending empty results to the client. |
I'm not sure what you mean. It is fixed in 1.4.4. That commit is from a point in time when it was broken. This was found while I was debugging and fixing the issue. |
@engelsanchez I mean the PB service that replies to this request, does it not emit empty (non-done) responses? |
Nope. It's been fixed. I didn't look at the semantics of the request though. If you think now that it's fixed this is moot, fine. But having it just crash on a function_clause seemed a bit harsh at the time. |
Ok. The impact of this change is minimal, and some people are liable to be running a broken version, so it's worth fixing. Thanks for bearing with me. 👍 💃 🍻 |
Thanks for looking at this! |
Fix unhandled case of empty cs buckets response
the PB translation generates a single token instead of a default record
when the entire message has only default values. This was uncovered in
1.4.4, where the cs buckets query was broken.