-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: # This diff Adds some functionality to the Sapling path utils to retry certain kinds of IO errors. Currently, these retries are only configured on macOS, and the only type of error that is retried is ErrorKind::TimedOut # Context On macOS NFS mounts, IO operations can sometimes return "OS Error 60" which indicates that an operation timed out. This can happen if the NFS Server doesn't respond to an NFS request quickly enough. The error doesn't necessarily mean the file is unavailable; it just means the server didn't respond quickly enough. In many cases, retrying the IO request would yield a successful result. However, many tools don't know that these error cases can be retried. This diff teaches some of Sapling's file utilities to retry OS Error 60 errors on macOS. Reviewed By: muirdm Differential Revision: D68801396 fbshipit-source-id: e6e1239a484dde64fa2381263c844f6330be1fcf
- Loading branch information
1 parent
8c27713
commit 39a650c
Showing
2 changed files
with
103 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters