-
Notifications
You must be signed in to change notification settings - Fork 950
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
bugfix: avoid task exit channel exit unexpected #1765
bugfix: avoid task exit channel exit unexpected #1765
Conversation
when containerd stop unexpected, we should judge exit time is zero, zero exit time means grpc connection is broken. Signed-off-by: Ace-Tang <aceapril@126.com>
Codecov Report
@@ Coverage Diff @@
## master #1765 +/- ##
==========================================
+ Coverage 56.32% 56.38% +0.06%
==========================================
Files 200 200
Lines 15657 15659 +2
==========================================
+ Hits 8819 8830 +11
+ Misses 5742 5736 -6
+ Partials 1096 1093 -3
|
PTAL, @HusterWan |
// isContainerdDead only take effect when contained stop normal, if containerd | ||
// stop unexpected, judge exit time is zero, zero exit time means grpc connection | ||
// is broken. | ||
if status.ExitTime().IsZero() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should also create a pr in gitlab?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, if you have look at it.
lgtm |
when containerd stop unexpected, we should judge exit time is zero,
zero exit time means grpc connection is broken.
Signed-off-by: Ace-Tang aceapril@126.com
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how you did it
Ⅳ. Describe how to verify it
step to verify the patch
Ⅴ. Special notes for reviews