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

etcd should report unhealthy status when in state: "mvcc: database space exceeded" #8207

Closed
wojtek-t opened this issue Jul 4, 2017 · 2 comments
Assignees

Comments

@wojtek-t
Copy link
Contributor

wojtek-t commented Jul 4, 2017

When etcd v3 enters the state of "mvcc: database space exceeded", it isn't fully functional. The user can only perform read operations, performing write operations returns in an error.

In such case, etcd shouldn't report it's state as healthy - it should be either unhealthy (or something in between).

@xiang90

@xiang90
Copy link
Contributor

xiang90 commented Jul 4, 2017

agreed.

@wojtek-t
Copy link
Contributor Author

wojtek-t commented Jul 4, 2017

Reproduction steps:
$ etcd --quota-backend-bytes=1000000 &
$ for i in seq 10000; do ETCDCTL_API=3 etcdctl put $i$i$i$i$i$i $i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i$i; done

Then running the following command returns:
$ curl localhost:2379/health
{"health": "true"}

So even if we are in "database space exceeded" etcd returns "heatlh: true".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants