From a5b31087e8aa93280f0e9383b72953eeb9317532 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 e6bb723cd..6d0829159 100644 --- a/etcdserver/raft.go +++ b/etcdserver/raft.go @@ -498,6 +498,7 @@ func restartAsStandaloneNode(cfg ServerConfig, snapshot *raftpb.Snapshot) (types Storage: s, MaxSizePerMsg: maxSizePerMsg, MaxInflightMsgs: maxInflightMsgs, + CheckQuorum: true, } n := raft.RestartNode(c) raftStatus = n.Status