瀏覽代碼

if the whole cluster dies, should not panic

Xiang Li 12 年之前
父節點
當前提交
dd2f856d63
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)