Return NotFound error for kill and delete in deleted state.#3244
Merged
estesp merged 1 commit intocontainerd:masterfrom May 7, 2019
Merged
Return NotFound error for kill and delete in deleted state.#3244estesp merged 1 commit intocontainerd:masterfrom
estesp merged 1 commit intocontainerd:masterfrom
Conversation
Signed-off-by: Lantao Liu <lantaol@google.com>
e3cea7d to
dff7456
Compare
Codecov Report
@@ Coverage Diff @@
## master #3244 +/- ##
==========================================
- Coverage 48.65% 44.63% -4.02%
==========================================
Files 102 113 +11
Lines 9570 12164 +2594
==========================================
+ Hits 4656 5430 +774
- Misses 4088 5899 +1811
- Partials 826 835 +9
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #3244 +/- ##
==========================================
- Coverage 48.65% 44.63% -4.02%
==========================================
Files 102 113 +11
Lines 9570 12164 +2594
==========================================
+ Hits 4656 5430 +774
- Misses 4088 5899 +1811
- Partials 826 835 +9
Continue to review full report at Codecov.
|
Member
|
LGTM These changes look really good for handling the state of a task |
This was referenced May 7, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We've seen this issue in a Kubernetes benchmark test https://prow.k8s.io/view/gcs/kubernetes-jenkins/logs/ci-cri-containerd-node-e2e-benchmark/1120454833061498892.
The initial container deletion hit a timeout, and returned at https://github.com/containerd/containerd/blob/v1.2.6/runtime/v1/linux/task.go#L89. I guess because we are stopping >200 containers at the same time:
However, the shim actually already deleted the container, thus went into
deleted state.After this point, all future kill and deletion won't be able to cleanup the container any more:
Signed-off-by: Lantao Liu lantaol@google.com