]> source.dussan.org Git - jgit.git/commit
Add public isStaleFileHandle() API, improve detection. 89/54489/1
authorMartin Fick <mfick@codeaurora.org>
Tue, 25 Aug 2015 13:48:50 +0000 (07:48 -0600)
committerMartin Fick <mfick@codeaurora.org>
Tue, 25 Aug 2015 14:19:54 +0000 (08:19 -0600)
commitcb08dd8b14bf4900c7974dd1ce5a3d553016585a
tree1889b8f0cf4b22bba43ac0406e9809e6aad90a87
parent847b3d12584d298d98eee9b2981e8123c067ab52
Add public isStaleFileHandle() API, improve detection.

Add a public API to the FileUtils to determine if an IOException is a
stale NFS file handle exception.  This will make it easier to detect
such errors, and interpret them consistently throughout the codebase.
This new API is a bit more lenient in its detection than the previous
detection, and should be able to detect some errors which previously
were not identified as stale file handle exceptions because they had the
word NFS in the error message.  Adjust the packfile handling code to use
this new API for detection.

Change-Id: I21f80014546ba1afec7335890e5ae79e7f521412
Signed-off-by: Martin Fick<mfick@codeaurora.org>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java