Export to GitHub

redis - issue #327

ZUNIONSTORE is not working if SourceKeys is set to expire


Posted on Sep 8, 2010 by Happy Hippo

redis> zadd z0 1 a (integer) 1 redis> zadd z1 1 a (integer) 1 redis> expire z0 1000 (integer) 1 redis> expire z1 1000 (integer) 1 redis> zunionstore dst 2 z0 z1 (integer) 0 redis> keys * (empty list or set)

WHY? where are the dst, z0, z1?

Tested on Redis 1.3.14 and 2.0.0

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Comment #1

Posted on Sep 8, 2010 by Grumpy Dog

Hello, this is fixed on Redis master and is not a bug but related to a bigger policy that was needed because of internal limitations of Redis <= 2.0. Redis master should work well.

Can you please verify so that I can close the bug? Thanks!

Cheers, Salvatore

Comment #2

Posted on Sep 8, 2010 by Happy Hippo

I just found the doc in http://code.google.com/p/redis/wiki/ExpireCommand

I've tried on Redis 2.1.4 now and it works!

Please close this issue, thanks!

Comment #3

Posted on Sep 8, 2010 by Grumpy Dog

Thank you, closing.

Status: Verified

Labels:
Type-Defect Priority-Medium