You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
Sorry for interrupting from development issues but I have found unexpected behaivor of LUA script when I try to call both: PUBLISH and DEL commands. I have subscriber which receive messages from specific channel about DEL events. I have found that sometimes it receive 2 notifications about same key.
After investigation I have found that there is some kind of correlation between DEL and PUBLISH commands.
I have implemented following scenarios:
Call DEL script and call PUBLISH script. Expected count of notifications - 1. Actual count - 1
Call PUBLISH script and call DEL script. Expected count of notifications - 1. Actual count - 1
Call script to perform both: DEL and PUBLISH commands. Expected count of notifications - 1. Actual count - 2
Call script to perform both: PUBLISH and DEL commands. Expected count of notifications - 1. Actual count - 2
I'm using Redis Cluster with 3 masters and 3 slaves and redis-3.2.4
Hello!
Sorry for interrupting from development issues but I have found unexpected behaivor of LUA script when I try to call both: PUBLISH and DEL commands. I have subscriber which receive messages from specific channel about DEL events. I have found that sometimes it receive 2 notifications about same key.
After investigation I have found that there is some kind of correlation between DEL and PUBLISH commands.
I have implemented following scenarios:
I'm using Redis Cluster with 3 masters and 3 slaves and redis-3.2.4
More information and screens with test results you can find here (https://groups.google.com/forum/#!topic/redis-db/dS6LacPPeKA)
Could you please clarify is it some kind of bug or I have to change the way how I'm using redis API
Testing scripts:
$REDIS_HOME/src/redis-cli -h xx.xx.xx.xx -p 6379 -a testpass EVAL "
local result = redis.call('DEL', KEYS[1])
redis.call('PUBLISH', ARGV[2], KEYS[1])
return result" 1 test hash REDIS.LOCK.TESTAPP
$REDIS_HOME/src/redis-cli -h xx.xx.xx.xx -p 6379 -a testpass EVAL "
redis.call('PUBLISH', ARGV[2], KEYS[1])
return redis.call('DEL', KEYS[1])" 1 test hash REDIS.LOCK.TESTAPP
$REDIS_HOME/src/redis-cli -h xx.xx.xx.xx -p 6379 -a testpass EVAL "return redis.call('DEL', KEYS[1])" 1 test hash REDIS.LOCK.TESTAPP
$REDIS_HOME/src/redis-cli -h xx.xx.xx.xx -p 6379 -a testpass EVAL "return redis.call('PUBLISH', ARGV[2], KEYS[1])" 1 test hash REDIS.LOCK.TESTAPP
Because of this issue I receive 2 notifications about LOCK removed event
The text was updated successfully, but these errors were encountered: