From 16f5b342ffb42d90e8d7421328709cdc0c3e94d9 Mon Sep 17 00:00:00 2001 From: zhongjiawei Date: Thu, 21 Dec 2023 19:51:44 +0800 Subject: [PATCH] runc:increase the number of cgroup deletion retries --- libcontainer/cgroups/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcontainer/cgroups/utils.go b/libcontainer/cgroups/utils.go index b32af4e..00191c2 100644 --- a/libcontainer/cgroups/utils.go +++ b/libcontainer/cgroups/utils.go @@ -268,7 +268,7 @@ func RemovePath(path string) error { // If after all there are not removed cgroups - appropriate error will be // returned. func RemovePaths(paths map[string]string) (err error) { - const retries = 5 + const retries = 10 delay := 10 * time.Millisecond for i := 0; i < retries; i++ { if i != 0 { -- 2.33.0