Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

ZUNIONSTORE can lead to NaN in score #264

Closed
antirez opened this Issue · 3 comments

2 participants

@antirez
Owner

Citing the author of the discovery:

amilcar54 commented on d9e28bc 9 minutes ago
I think you forgot the following case:

redis> zadd z -inf neginf
(integer) 1
redis> zunionstore out 1 z weights 0
(integer) 1
redis> zrange out 0 -1 withscores
1) "neginf"
2) "nan"

@miaout17

Wow. Is it related to crash issues such as #243?

@antirez
Owner

@miaout17 probably it is, but apparently that crash can be the result of just ZADD/ZREM so what is exactly going on is not clear. But this is a step forward for sure.

@antirez
Owner

This issue is now fixed. It's not related to #243 AFAIK.

@antirez antirez closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.