Closed ccutrer closed 5 months ago
With a recent redis-cluster-client commit, @router can be nil, so https://github.com/redis/redis-rb/blob/v5.2.0/cluster/lib/redis/cluster/client.rb#L56 is failing.
@router
nil
#<NoMethodError: undefined method `node_keys' for nil:NilClass @router.node_keys.join(' ') ^^^^^^^^^^> /var/web/canvas/shared/bundle/ruby/3.1.0/gems/redis-clustering-5.2.0/lib/redis/cluster/client.rb:56:in `id' /var/web/canvas/shared/bundle/ruby/3.1.0/gems/redis-5.2.0/lib/redis.rb:111:in `id' /var/web/canvas/shared/bundle/ruby/3.1.0/gems/redis-5.2.0/lib/redis.rb:115:in `inspect' (irb):8:in `<top (required)>'
is a full backtrace.
Note that in redis-cluster-client's inspect method, it checks if @router is nil before using it now.
Sorry, I'll fix it ASAP.
With a recent redis-cluster-client commit,
@router
can benil
, so https://github.com/redis/redis-rb/blob/v5.2.0/cluster/lib/redis/cluster/client.rb#L56 is failing.is a full backtrace.
Note that in redis-cluster-client's inspect method, it checks if
@router
isnil
before using it now.