mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #2731 from yichengq/tester-wait-long
tools/etcd-tester: wait longer for health
This commit is contained in:
commit
4953e490f6
@ -129,7 +129,11 @@ func (c *cluster) Bootstrap() error {
|
||||
|
||||
func (c *cluster) WaitHealth() error {
|
||||
var err error
|
||||
for i := 0; i < 10; i++ {
|
||||
// wait 60s to check cluster health.
|
||||
// TODO: set it to a reasonable value. It is set that high because
|
||||
// follower may use long time to catch up the leader when reboot under
|
||||
// reasonable workload (https://github.com/coreos/etcd/issues/2698)
|
||||
for i := 0; i < 60; i++ {
|
||||
err = setHealthKey(c.ClientURLs)
|
||||
if err == nil {
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user