{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22418","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22418/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22418/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22418/events","html_url":"https://github.com/kubernetes/kubernetes/pull/22418","id":138102025,"number":22418,"title":"[RFC] Ignore NotFound error in generic etcd's Delete()","user":{"login":"caesarxuchao","id":2823529,"avatar_url":"https://avatars.githubusercontent.com/u/2823529?v=3","gravatar_id":"","url":"https://api.github.com/users/caesarxuchao","html_url":"https://github.com/caesarxuchao","followers_url":"https://api.github.com/users/caesarxuchao/followers","following_url":"https://api.github.com/users/caesarxuchao/following{/other_user}","gists_url":"https://api.github.com/users/caesarxuchao/gists{/gist_id}","starred_url":"https://api.github.com/users/caesarxuchao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesarxuchao/subscriptions","organizations_url":"https://api.github.com/users/caesarxuchao/orgs","repos_url":"https://api.github.com/users/caesarxuchao/repos","events_url":"https://api.github.com/users/caesarxuchao/events{/privacy}","received_events_url":"https://api.github.com/users/caesarxuchao/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/S","name":"size/S","color":"77bb00"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/CSI-API%20Machinery%20SIG","name":"team/CSI-API Machinery SIG","color":"d2b48c"}],"state":"open","locked":false,"assignee":{"login":"lavalamp","id":647318,"avatar_url":"https://avatars.githubusercontent.com/u/647318?v=3","gravatar_id":"","url":"https://api.github.com/users/lavalamp","html_url":"https://github.com/lavalamp","followers_url":"https://api.github.com/users/lavalamp/followers","following_url":"https://api.github.com/users/lavalamp/following{/other_user}","gists_url":"https://api.github.com/users/lavalamp/gists{/gist_id}","starred_url":"https://api.github.com/users/lavalamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavalamp/subscriptions","organizations_url":"https://api.github.com/users/lavalamp/orgs","repos_url":"https://api.github.com/users/lavalamp/repos","events_url":"https://api.github.com/users/lavalamp/events{/privacy}","received_events_url":"https://api.github.com/users/lavalamp/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2016-03-03T07:42:59Z","updated_at":"2016-03-03T21:46:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/22418","html_url":"https://github.com/kubernetes/kubernetes/pull/22418","diff_url":"https://github.com/kubernetes/kubernetes/pull/22418.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/22418.patch"},"body":"Another attemp to fix #19403.\r\n\r\nWhen handling a deletion with grace-period=0, the apiserver can get context-switched before deleting the object from the etcd, and another k8s component (kubelet, controllers, etc.) may send another deletion with grace-period=0 and succeeds. The context-switched thread gets switched back and will find the object doesn't exist on etcd anymore and returns an NotFound error. This race seems inevitable, so in this PR I ignore the NotFound error at server-side so a client won't receive a NotFound error when it really is the party that causes the deletion.\r\n\r\nProbably I missed something here, so I'm calling for help here @smarterclayton @lavalamp @liggitt @bgrant0607 "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/191978437","html_url":"https://github.com/kubernetes/kubernetes/pull/22418#issuecomment-191978437","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22418","id":191978437,"user":{"login":"k8s-bot","id":12551979,"avatar_url":"https://avatars.githubusercontent.com/u/12551979?v=3","gravatar_id":"","url":"https://api.github.com/users/k8s-bot","html_url":"https://github.com/k8s-bot","followers_url":"https://api.github.com/users/k8s-bot/followers","following_url":"https://api.github.com/users/k8s-bot/following{/other_user}","gists_url":"https://api.github.com/users/k8s-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/k8s-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k8s-bot/subscriptions","organizations_url":"https://api.github.com/users/k8s-bot/orgs","repos_url":"https://api.github.com/users/k8s-bot/repos","events_url":"https://api.github.com/users/k8s-bot/events{/privacy}","received_events_url":"https://api.github.com/users/k8s-bot/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T21:46:17Z","updated_at":"2016-03-03T21:46:17Z","body":"GCE e2e build/test **passed** for commit fd533676b2693f6927d72b79c8b251e1c9b2950b.\n* [Build Log](http://pr-test.k8s.io/22418/kubernetes-pull-build-test-e2e-gce/31571/build-log.txt)\n* [Test Artifacts](https://console.developers.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/22418/kubernetes-pull-build-test-e2e-gce/31571/artifacts/)\n* [Internal Jenkins Results](http://goto.google.com/prkubekins/job/kubernetes-pull-build-test-e2e-gce//31571)\n"}}