-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
etcdserver: requested lease not found #9374
Comments
Can you provide reproducible steps (locally)? |
Not really, it's just a simple service that accepts records by grpc and store them in etcd for 24 hrs. If you can give an idiomatic example for the scenario it would be nice. |
And the main question how that could be possible that successfully created lease can't be found. |
@sh1ng Do you have etcd server logs when this happened? |
Even after upgrade on Could it be possible that when parent context has been canceled etcd(or etcd client) returns revoked lease? We use streaming api to our service and a client might cancel it from time to time. |
@sh1ng Do you server logs when this happened? |
When a lease is created with We may want |
@gyuho What value would you suggest for the max TTL? 10 years? |
We usually lease promote with election timeout (which is 1 second by default), so |
math.MaxInt64 / time.Second is 9,223,372,036. 9,000,000,000 is easier to remember/document. Closes etcd-io#9374.
@gyuho thanks for the suggestion. |
math.MaxInt64 / time.Second is 9,223,372,036. 9,000,000,000 is easier to remember/document. Closes etcd-io#9374.
The fix will be released in 3.2 and 3.3. |
Thanks guys! |
Bug reporting
We use an etcd cluster of 3 members with version
quay.io/coreos/etcd:v3.2.0
running in k8s cluster. Not a heavy load, about 10k writes a day.
How that even possible? We see the error a few times a day.
What is the best way to deal with it?
The text was updated successfully, but these errors were encountered: