mirror of
https://github.com/fluencelabs/redis
synced 2025-04-09 02:46:02 +00:00
Cluster: redis-trib, more info about open slots error.
This commit is contained in:
parent
1a73c992a3
commit
be0bb19fd3
@ -359,11 +359,11 @@ class RedisTrib
|
|||||||
@nodes.each{|n|
|
@nodes.each{|n|
|
||||||
if n.info[:migrating].size > 0
|
if n.info[:migrating].size > 0
|
||||||
cluster_error \
|
cluster_error \
|
||||||
"[WARNING] Node #{n} has slots in migrating state."
|
"[WARNING] Node #{n} has slots in migrating state (#{n.info[:migrating].keys.join(",")})."
|
||||||
open_slots += n.info[:migrating].keys
|
open_slots += n.info[:migrating].keys
|
||||||
elsif n.info[:importing].size > 0
|
elsif n.info[:importing].size > 0
|
||||||
cluster_error \
|
cluster_error \
|
||||||
"[WARNING] Node #{n} has slots in importing state."
|
"[WARNING] Node #{n} has slots in importing state (#{n.info[:importing].keys.join(",")})."
|
||||||
open_slots += n.info[:importing].keys
|
open_slots += n.info[:importing].keys
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user