chnaghong1990 / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

MONITOR shows BRPOPLPUSH as RPOPLPUSH if non nil reply #635

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Redis 2.2.11

A MONITOR command transforms BRPOPLPUSH INTO RPOPLPUSH if it returns a value 
before the timeout, else it correctly shows BRPOPLPUSH

A list with 3 objects that gets 6 BRPOPLPUSHes looks like this: 

1313538362.827309 "RPOPLPUSH" "trans:1" "trans:2"
1313538362.827355 "RPOPLPUSH" "trans:1" "trans:2"
1313538362.827391 "RPOPLPUSH" "trans:1" "trans:2"
1313538362.827423 "BRPOPLPUSH" "trans:1" "trans:2" "1"
1313538362.836824 "BRPOPLPUSH" "trans:1" "trans:2" "1"
1313538362.904593 "BRPOPLPUSH" "trans:1" "trans:2" "1"

Now that we understand the logic, I almost like it this way, as it allows a 
determination from MONITOR as to whether BRPOPLPUSH returned a value or timed 
out.  As such, I'm not necessarily requesting that this be resolved--just 
making everyone aware of it.

Original issue reported on code.google.com by deanwba...@gmail.com on 17 Aug 2011 at 8:54