Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Lua script multi-element LPUSH / BRPOPLPUSH replication bug #614
I noticed a replication bug while attempting to use Redis as a reliable queue with a Lua script pushing multiple elements onto the queue. It appears the wrong number of RPOP operations are sent to the slave instance, resulting in the queue on the slave growing unbounded, out of sync with master.
I created an example repo to demonstrate this behavior:
This affects Redis 2.5.12 (and 2.5.11, likely early versions as well).