You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cephfs: avoid hanging os.Stat() in NodeGetVolumeStats after restart
If a node-plugin pod restarts while the backend (e.g. MDS) is down,
NodeGetVolumeStats used to call os.Stat() on the target path
immediately after (re)starting the health checker, before the
checker had a chance to detect the outage. Since os.Stat() blocks
in the kernel on an unresponsive mount, this held the VolumeLock
forever and made every later call for that path fail with Aborted.
Return early with an "not yet available" condition instead of
calling os.Stat() when the checker was just (re)started, for
CephFS.
Signed-off-by: SanjalKatiyar <sanjaldhir@gmail.com>
0 commit comments