Closed Guillermogsjc closed 1 year ago
Thanks for submitting this issue!
To clarify, what's crashing is the client that doesn't handle the error. Dragonfly wrongly returns an error instead of a null, which it shouldn't, and this the fix I had just sent.
Describe the bug HRANDFIELD fails when provided a key that does not exist.
In redis API it does not crash (as idiomatic), it just returns None
To Reproduce
with unexisting
key
(maybe it is a key that existed but every field has been popped, or a directly never existing one).Obtaining through
redis==4.5.5
python SDK:or from shell:
Expected behavior Not to crash, give back None, as in Redis API (just moved a workload that used to be working against redis and it is crashing at this point).
Need corner test cases of calling methods over empty/unexisting keys to match Redis API idiomatic standard (return
None
not fail)Screenshots
Environment (please complete the following information):