Merge "NetApp NFS: Look for new file for >60s"
This commit is contained in:
commit
ab8abb8aff
@ -643,10 +643,15 @@ class NetAppNfsDriver(driver.ManageableVD,
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _discover_file_till_timeout(self, path, timeout=45):
|
def _discover_file_till_timeout(self, path, timeout=75):
|
||||||
"""Checks if file size at path is equal to size."""
|
"""Checks if file size at path is equal to size."""
|
||||||
# Sometimes nfs takes time to discover file
|
# Sometimes nfs takes time to discover file
|
||||||
# Retrying in case any unexpected situation occurs
|
# Retrying in case any unexpected situation occurs
|
||||||
|
#
|
||||||
|
# The NFS client by default has a 60 second maximum
|
||||||
|
# cache time before it refreshes directory information.
|
||||||
|
# (See man 5 nfs acdirmax.) Allow 75 seconds for
|
||||||
|
# retries to ensure that this cache has refreshed.
|
||||||
retry_seconds = timeout
|
retry_seconds = timeout
|
||||||
sleep_interval = 2
|
sleep_interval = 2
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user