Merge pull request #2731 from yichengq/tester-wait-long

tools/etcd-tester: wait longer for health
This commit is contained in:
Yicheng Qin 2015-04-22 11:25:58 -07:00
commit 4953e490f6

View File

@ -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