Closed fluke closed 1 year ago
Hi,
This isn't a bug in redis-client, it means you are using the same connection from multiple threads, you shouldn't.
In multi-threaded environment, you must either use a pool, or assign a single client per thread, it's all described in the readme.
Similar: https://github.com/leandromoreira/redlock-rb/issues/128
Thanks for the answer. I should have checked in the redlock issues as well, sorry.
Since I upgraded redis-client to 14.1 from 12.2 I have been seeing a large number of the above error. I am running this app on Heroku and using Heroku Redis. It is primarily used by redlock-rb gem which is there in the stacktrace.
Error is coming from: https://github.com/redis-rb/redis-client/blob/v0.14.1/lib/redis_client/ruby_connection.rb#L92
Stacktrace: