mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
participant: retry join more times
This commit is contained in:
parent
e709f1b572
commit
1c9928d721
@ -330,7 +330,7 @@ func (p *participant) join() {
|
||||
PeerURL: p.raftPubAddr,
|
||||
}
|
||||
|
||||
for i := 0; i < 5; i++ {
|
||||
for {
|
||||
for seed := range p.seeds {
|
||||
if err := p.client.AddMachine(seed, fmt.Sprint(p.id), info); err == nil {
|
||||
return
|
||||
@ -340,4 +340,5 @@ func (p *participant) join() {
|
||||
}
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
}
|
||||
log.Println("fail to join the cluster")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user