Explorar el Código

if the whole cluster dies, should not panic

Xiang Li hace 12 años
padre
commit
dd2f856d63
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      raft_server.go

+ 1 - 1
raft_server.go

@@ -91,7 +91,7 @@ func (r *raftServer) ListenAndServe() {
 		}
 		}
 		ok := joinCluster(cluster)
 		ok := joinCluster(cluster)
 		if !ok {
 		if !ok {
-			fatal("cannot rejoin to the cluster")
+			warn("the whole cluster dies! restart the cluster")
 		}
 		}
 
 
 		debugf("%s restart as a follower", r.name)
 		debugf("%s restart as a follower", r.name)