-
Notifications
You must be signed in to change notification settings - Fork 256
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
[release/0.8] Remove ERROR_PROC_NOT_FOUND from error checks #1065
Merged
Conversation
This file contains 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
Previously, certain error check functions like IsAlreadyStopped returned true if the error was ERROR_PROC_NOT_FOUND. Based on the comment in the file, this was intended to be used to indicate a case where the process could not be found. However, it seems this may have been added erroneously. ERROR_PROC_NOT_FOUND is actually typically used to mean that a _procedure_ lookup failed, and has nothing to do with processes. The original change[1] to check against ERROR_PROC_NOT_FOUND was made five years ago, and did not contain much information on why this error would be returned. We are removing this now based on several factors: - We are not aware of any condition where HCS would intentionally return ERROR_PROC_NOT_FOUND to indicate a condition "process does not exist". - There is an issue where HcsShutdownComputeSystem sometimes returns ERROR_PROC_NOT_FOUND due to something failing internally. The current error checks are causing this to be treated as "the container has already exited", causing moby to not properly stop the container via HcsTerminateComputeSystem. This change leaves the definition for ErrProcNotFound in the code, as it may be used by external callers, but fixes its comment. [1]: See commit 0ae7e7e Signed-off-by: Kevin Parsons <kevpar@microsoft.com> (cherry picked from commit d78544d) Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
dcantah
approved these changes
Jul 8, 2021
anmaxvl
approved these changes
Jul 8, 2021
This was referenced Jul 8, 2021
thaJeztah
added a commit
to thaJeztah/docker
that referenced
this pull request
Jul 9, 2021
…756a991ad09cf7c (moby branch) Brings in microsoft/hcsshim#1065, which fixes moby#42610. full diff: microsoft/hcsshim@89a9a3b...64a2b71 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
kevpar
added a commit
to kevpar/moby
that referenced
this pull request
Jul 13, 2021
Full set of changes: microsoft/hcsshim@v0.8.16...v0.8.20 Importantly brings in microsoft/hcsshim#1065, which fixes moby#42610. Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
docker-jenkins
pushed a commit
to docker-archive/docker-ce
that referenced
this pull request
Jul 14, 2021
Full set of changes: microsoft/hcsshim@v0.8.16...v0.8.20 Importantly brings in microsoft/hcsshim#1065, which fixes #42610. Signed-off-by: Kevin Parsons <kevpar@microsoft.com> Upstream-commit: f7eaf2bf78e031c2f28259359cf4efb6655bcf5a Component: engine
nosamad
pushed a commit
to WAGO/docker-engine
that referenced
this pull request
Sep 13, 2021
…756a991ad09cf7c (moby branch) Brings in microsoft/hcsshim#1065, which fixes moby#42610. full diff: microsoft/hcsshim@89a9a3b...64a2b71 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
nosamad
pushed a commit
to WAGO/docker-engine
that referenced
this pull request
Sep 15, 2021
…756a991ad09cf7c (moby branch) Brings in microsoft/hcsshim#1065, which fixes moby#42610. full diff: microsoft/hcsshim@89a9a3b...64a2b71 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
nosamad
pushed a commit
to WAGO/docker-engine
that referenced
this pull request
Sep 28, 2021
…756a991ad09cf7c (moby branch) Brings in microsoft/hcsshim#1065, which fixes moby#42610. full diff: microsoft/hcsshim@89a9a3b...64a2b71 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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.
Backport to
release/0.8
of #1064.Previously, certain error check functions like IsAlreadyStopped returned
true if the error was ERROR_PROC_NOT_FOUND. Based on the comment in the
file, this was intended to be used to indicate a case where the process
could not be found. However, it seems this may have been added
erroneously. ERROR_PROC_NOT_FOUND is actually typically used to mean
that a procedure lookup failed, and has nothing to do with processes.
The original change[1] to check against ERROR_PROC_NOT_FOUND was made
five years ago, and did not contain much information on why this error
would be returned. We are removing this now based on several factors:
ERROR_PROC_NOT_FOUND to indicate a condition "process does not exist".
ERROR_PROC_NOT_FOUND due to something failing internally. The current
error checks are causing this to be treated as "the container has
already exited", causing moby to not properly stop the container via
HcsTerminateComputeSystem.
This change leaves the definition for ErrProcNotFound in the code, as it
may be used by external callers, but fixes its comment.
[1]: See commit 0ae7e7e
Signed-off-by: Kevin Parsons kevpar@microsoft.com
(cherry picked from commit d78544d)
Signed-off-by: Kevin Parsons kevpar@microsoft.com