diff --git a/server/controller/election/election.go b/server/controller/election/election.go index 280fdf0b4c9..4f7c58411d2 100644 --- a/server/controller/election/election.go +++ b/server/controller/election/election.go @@ -101,6 +101,10 @@ func getID() string { } func GetLeader() string { + if common.IsStandaloneRunningMode() { + // in standalone mode, the local machine is the master node because of all in one deployment + return getID() + } return leaderData.GetLeader() }