Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etcdctl: cluster-health supports forever flag #3197

Merged
merged 1 commit into from
Aug 4, 2015

Conversation

xiang90
Copy link
Contributor

@xiang90 xiang90 commented Jul 30, 2015

cluster-health command supports checking the cluster health
forever.

Fix #2383

fmt.Println("cluster may be unhealthy: failed to list members")
if forever {
time.Sleep(10 * time.Second)
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It continues to check err again. Is it supposed to list member again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a mistake. i moved this out of the for loop and added a todo.

cluster-health command supports checking the cluster health
forever.
@xiang90
Copy link
Contributor Author

xiang90 commented Aug 1, 2015

PTAL. This commits does not change any previous logic. The previous logic has some issues. But we should address them in another pull request I think.

@yichengq
Copy link
Contributor

yichengq commented Aug 3, 2015

lgtm

xiang90 added a commit that referenced this pull request Aug 4, 2015
etcdctl: cluster-health supports forever flag
@xiang90 xiang90 merged commit ff5c346 into etcd-io:master Aug 4, 2015
@xiang90 xiang90 deleted the health branch March 21, 2016 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants