mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/fs: reduce the frequency of failed to remove directory ... due to NFS lock
log warnings
Log `failed to remove directory ... due to NFS lock` warning only if the directory cannot be removed in one second.
This commit is contained in:
parent
540c00f2a0
commit
e03233f441
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ func dirRemover() {
|
|||
time.Sleep(sleepTime)
|
||||
if sleepTime < maxSleepTime {
|
||||
sleepTime *= 2
|
||||
} else {
|
||||
} else if sleepTime > time.Second {
|
||||
logger.Warnf("failed to remove directory %q due to NFS lock; retrying later in %.3f seconds", w.path, sleepTime.Seconds())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue