Ver código fonte

if the whole cluster dies, should not panic

Xiang Li 12 anos atrás
pai
commit
dd2f856d63
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      raft_server.go

+ 1 - 1
raft_server.go

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