From 82cfe9f14f8fb445d682ce2774ea44ce54885e81 Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Wed, 19 May 2021 17:29:59 +0200 Subject: [PATCH] ConsistentRead tries 10 times We've seen clusters where 3 attempts were not enough. Bumping to 10. The slowdown should be negligible and it will reduce retry attempts in the upper layers of kubelet. --- staging/src/k8s.io/mount-utils/mount_helper_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/mount-utils/mount_helper_unix.go b/staging/src/k8s.io/mount-utils/mount_helper_unix.go index 2c14a27c7192..f3658647eea2 100644 --- a/staging/src/k8s.io/mount-utils/mount_helper_unix.go +++ b/staging/src/k8s.io/mount-utils/mount_helper_unix.go @@ -32,7 +32,7 @@ const ( // At least number of fields per line in /proc//mountinfo. expectedAtLeastNumFieldsPerMountInfo = 10 // How many times to retry for a consistent read of /proc/mounts. - maxListTries = 3 + maxListTries = 10 ) // IsCorruptedMnt return true if err is about corrupted mount point