From 69357adf33d0d5278a1ff1288f21a3feb16145b2 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Fri, 23 Feb 2018 00:26:42 -0800 Subject: [PATCH] etcdserver: enable "CheckQuorum" when starting with "ForceNewCluster" We enable "raft.Config.CheckQuorum" by default in other Raft initial starts. So should start with "ForceNewCluster". Signed-off-by: Gyuho Lee --- etcdserver/raft.go | 1 + 1 file changed, 1 insertion(+) diff --git a/etcdserver/raft.go b/etcdserver/raft.go index ff11349fae4..9695da80ea5 100644 --- a/etcdserver/raft.go +++ b/etcdserver/raft.go @@ -500,6 +500,7 @@ func restartAsStandaloneNode(cfg ServerConfig, snapshot *raftpb.Snapshot) (types Storage: s, MaxSizePerMsg: maxSizePerMsg, MaxInflightMsgs: maxInflightMsgs, + CheckQuorum: true, } n := raft.RestartNode(c) raftStatus = n.Status