-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Shouldnt be returning etcd errors #10064
Comments
See also #10031 |
And #1990 |
We should log unexpected etcd errors (at a suitably high verbosity level). |
Also the case from #10031 reported by @smarterclayton : Spawned from openshift/origin#3196 |
The general issue is #1990 |
The etcd errors were previously noted there: #1990 (comment) |
Can this be closed? |
I had a comment about the linked change - I would have preferred not to change etcd/error like this because it changes error filtering cases. |
Fixed by #10246 |
Verified that all rest handlers call writeNegotiated() which calls errToAPIStatus: kubernetes/pkg/apiserver/apiserver.go Line 423 in 21455ab
|
As discussed with @bgrant0607, we return etcd error as is if update fails: https://github.com/GoogleCloudPlatform/kubernetes/blob/5520386b180d3ddc4fa7b7dfe6f52642cc0c25f3/pkg/api/errors/etcd/etcd.go#L48. All other functions except InterpretUpdateError() are fine.
Also, we shouldnt be checking resourceVersion while updating in the apiServer: https://github.com/GoogleCloudPlatform/kubernetes/blob/4fdcbc3096432692ee27c8d3f7e85580b29f780c/pkg/registry/generic/etcd/etcd.go#L302. We should let etcd do the conflict check.
The text was updated successfully, but these errors were encountered: