We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6957c4c commit 39a956fCopy full SHA for 39a956f
join/add.go
@@ -157,6 +157,11 @@ func (ma *memberAdder) protectCluster(ctx context.Context) error {
157
return fmt.Errorf("cluster is already full with %d members", ma.targetSize)
158
}
159
160
+ if startedMembers == 1 {
161
+ glog.Infof("One node cluster found. Joining is always unsafe, nothing to do about that. Continuing.")
162
+ return nil
163
+ }
164
+
165
futureQuorum := (startedMembers+1)/2 + 1
166
if healthyMembers < futureQuorum {
167
return fmt.Errorf("cannot add another member temporarily to the %d member "+
0 commit comments