You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm consistently seeing the following exception when calling hrandfieldWithvalues when there is only a single result returned. If multiple results are returned, the call succeeds.
If the count argument is one, and keys is null, the output field ends up as an immutable empty list and the UnsupportedOperationException is thrown when the code attempts to add an element to the list.
The text was updated successfully, but these errors were encountered:
Yes you are more than certainly right and this seems like a bug in the KeyValueListOutput
The team will try to get this sorted out with the 6.6.0 release
Bug Report
Current Behavior
I'm consistently seeing the following exception when calling hrandfieldWithvalues when there is only a single result returned. If multiple results are returned, the call succeeds.
Stack trace
Input Code
Input Code
Expected behavior/code
no exception :)
Environment
Possible Solution
Additional context
Looks similar to #711 although that bug report indicates they ran into the error during an mget call.
I believe the bug is here in the multi method: https://github.com/redis/lettuce/blob/main/src/main/java/io/lettuce/core/output/KeyValueListOutput.java#L77
If the count argument is one, and keys is null, the output field ends up as an immutable empty list and the UnsupportedOperationException is thrown when the code attempts to add an element to the list.
The text was updated successfully, but these errors were encountered: