-
Notifications
You must be signed in to change notification settings - Fork 949
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: free resource after exec exit #1240
bugfix: free resource after exec exit #1240
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1240 +/- ##
==========================================
+ Coverage 15.21% 15.35% +0.14%
==========================================
Files 172 172
Lines 10735 10632 -103
==========================================
Hits 1633 1633
+ Misses 8981 8879 -102
+ Partials 121 120 -1
|
ctrd/container.go
Outdated
@@ -89,6 +89,11 @@ func (c *Client) ExecContainer(ctx context.Context, process *Process) error { | |||
break | |||
} | |||
} | |||
|
|||
// delete the finish exec process in containerd |
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.
s/finish/finished ?
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.
have updated.
I am wondering if we could add a integration to cover this case? @Ace-Tang |
I donnot think so, just like not close file or some other resource, WDYT, @allencloud |
when we start a exec process in containerd, we should do delete operate after exec process exit, to delete exec pid file. Signed-off-by: Ace-Tang <[email protected]>
LGTM |
when we start a exec process in containerd, we should do
delete operate after exec process exit, to delete exec pid file.
Signed-off-by: Ace-Tang [email protected]
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Describe how you did it
fix exec process pid leak, like:
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews