]> source.dussan.org Git - jgit.git/commit
Remove pack from list when file handle is stale 49/45649/5
authorHugo Arès <hugo.ares@ericsson.com>
Tue, 7 Apr 2015 15:17:06 +0000 (11:17 -0400)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 30 Apr 2015 14:21:05 +0000 (16:21 +0200)
commitae4b72d50e84f9af7978075d4919ad4d2b1d018a
treefd1af4ef19b2736c712af8f37b372e5df9552180
parentd3a73c1407f8936cb45516da8d3a2d4dd43c6379
Remove pack from list when file handle is stale

This error happens on nfs file system when you try to read a file that
was deleted or replaced.

When the error happens because the file was deleted, removing it from
the list is the proper way to handle the error, same use case as
FileNotFoundException. When the error happens because the file was
replaced, removing the file from the list will cause the file to be
re-read so it will get the latest version of the file.

Bug: 462868
Change-Id: I368af61a6cf73706601a3e4df4ef24f0aa0465c5
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java