Closed ArturT closed 2 years ago
Here is a script that can help pinpoint the issue. https://github.com/redis/redis-rb/issues/1069#issuecomment-1060382359
Maybe something is wrong with the following code when running in threads and @redis
is overridden.
The issue has been solved by this PR: https://github.com/resque/redis-namespace/pull/192
I use redis-namespace 1.8.1. I upgraded redis gem from 4.5.1 to 4.6.0 and I noticed errors from time to time in our Sidekiq workers.
I believe this is related to recent changes in redis gem regarding
multi
method: https://github.com/redis/redis-rb/blob/master/CHANGELOG.md#460Deprecate calling commands on Redis inside Redis#multi.
should be replaced by:
Here is how to reproduce the error.
Then run in bash this
It will keep running the script until it fails.
Here the line in redis-namespace. Maybe it somehow wrongly use redis gem after the latest changes for
multi
( https://github.com/redis/redis-rb/pull/1059 )?related issue in redis gem repo
I reported the issue also in redis gem https://github.com/redis/redis-rb/issues/1069#issuecomment-1059191436 but we found out that it happens only when using redis-namespace gem.