ReplicationTasksStorage: Handle DirectoryIteratorExceptions

These exceptions wrap IOExceptions for methods whose contract doesn't
allow them to throw an IOException. In situations where storage is NFS
based, it's common to have Stale NFS File Handle errors when iterating a
directory that can be moved and undesirable to log each time that
occurs. Reuse some code from JGit and the events plugin to check for NFS
SFH conditions.

Bug: Issue 12687
Change-Id: If833975cf12c195c8039f825e61bee13b6107c0d
2 files changed
tree: 69a588a0b006dfc4c4fb10be1e0a60fe87ac101f
  1. .gitignore
  2. .mailmap
  3. .settings/
  4. BUILD
  5. LICENSE
  6. src/