redis-trib should not abort easily on connection issues.

This commit is contained in:
antirez 2014-09-26 16:57:42 +02:00
parent d4222e6bee
commit de10b8d9cc

View File

@ -686,8 +686,13 @@ class RedisTrib
f[:flags].index("fail")
fnode = ClusterNode.new(f[:addr])
fnode.connect()
fnode.load_info()
add_node(fnode)
next if !fnode.r
begin
fnode.load_info()
add_node(fnode)
rescue => e
xputs "[ERR] Unable to load info for node #{fnode}"
end
}
populate_nodes_replicas_info
end