Open mrniko opened 3 years ago
@mrniko could you please provide a test case? I've tried the following:
127.0.0.1:6379> BRPOPLPUSH issue94 issue94_dest 500
"value1"
(15.73s)
127.0.0.1:6379> BRPOPLPUSH issue94 issue94_dest 5
(nil)
(5.07s)
127.0.0.1:6379> BRPOPLPUSH issue94 issue94_dest 1
(nil)
(1.04s)
127.0.0.1:6379> BRPOPLPUSH issue94 issue94_dest 2
(nil)
(2.02s)
127.0.0.1:6379> BRPOPLPUSH issue94 issue94_dest 2
"nil"
127.0.0.1:6379> BRPOPLPUSH issue94 issue94_dest 2
(nil)
(2.02s)
127.0.0.1:6379> BRPOPLPUSH issue94 issue94_dest 4
(nil)
(4.01s)
And basically it always returns after requested timeout (or of course when there is an element pushed to the list) - as indicated above.
Describe the bug/issue BRPOPLPUSH command with 2 or 1 second returns immediately if queue is empty.
To Reproduce Redis 5.0.10 for Windows
Crash report No
INFO output No
Event Log No
Additional context Redis single