From cb7e50e7ed3d15b3aed464a24361d4771fe05dc0 Mon Sep 17 00:00:00 2001 From: rojingeorge Date: Thu, 23 Jun 2016 21:58:03 +0530 Subject: [PATCH] Display the nodes summary once the cluster is established using redis-trib.rb Display the nodes summary once the cluster is established using redis-trib.rb After the cluster meet and join was done, when the summary was shown, it was giving info regarding the nodes. This fix ensures that confusion where the slaves were shown as masters. Fix would be to reset the nodes and reload the cluster information before checking the cluster status after creating it. --- src/redis-trib.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index 68d46bdf8..b40b5decb 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -1305,6 +1305,11 @@ class RedisTrib sleep 1 wait_cluster_join flush_nodes_config # Useful for the replicas + # Reset the node information, so that when the + # final summary is listed in check_cluster about the newly created cluster + # all the nodes would get properly listed as slaves or masters + reset_nodes + load_cluster_info_from_node(argv[0]) check_cluster end