Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis#without_reconnect fails when connecting to a Sentinel #1212

Closed
irminsul opened this issue Aug 10, 2023 · 0 comments · Fixed by #1219
Closed

Redis#without_reconnect fails when connecting to a Sentinel #1212

irminsul opened this issue Aug 10, 2023 · 0 comments · Fixed by #1219

Comments

@irminsul
Copy link

This is probably related to #1209 / #1210.

Reproduction:

redis = Redis.new(name: "mymaster", sentinels: [{ host: "127.0.0.1", port: 26380 }], role: :master)
redis.without_reconnect { :do_nothing }

This raises the following error:

NoMethodError: undefined method `disable_reconnection' for #<RedisClient:0x00007fbbfa828e90>
from /home/mz/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/redis-5.0.7/lib/redis.rb:79:in `without_reconnect'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant