-
Notifications
You must be signed in to change notification settings - Fork 346
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
Ensure cgroup error behavior is consistent with runc #333
Conversation
Codecov Report
@@ Coverage Diff @@
## main #333 +/- ##
==========================================
- Coverage 71.14% 70.61% -0.53%
==========================================
Files 46 46
Lines 6828 6882 +54
==========================================
+ Hits 4858 4860 +2
- Misses 1970 2022 +52 |
cgroups/src/common.rs
Outdated
@@ -355,3 +356,21 @@ pub(crate) fn default_devices() -> Vec<LinuxDevice> { | |||
}, | |||
] | |||
} | |||
|
|||
pub(crate) fn delete_with_retry<P: AsRef<Path>>(path: P) -> Result<()> { |
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.
I think it is more versatile to have the number of retries and the delay as arguments. What do you think?
Sorry for the delay, I checked, and this is now consistent with runc. This should fix and close #328 . Thanks for the fix, now I will go ahead with rest of the integration test 👍 😄 |
b9ac863
to
a47506e
Compare
@utam0k PTAL |
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.
LGTM
This should fix #328.
@YJDoc2 Can you confirm that this fixes your problem?