]> source.dussan.org Git - jgit.git/commit
Don't remove pack from pack list for problems which could be transient 85/39685/6
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 15 Jan 2015 16:30:11 +0000 (17:30 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 21 Jan 2015 01:14:34 +0000 (02:14 +0100)
commit27ee3342136a588adbc1eee4b333179d8f6f1aa7
tree2e409ffd4dd711b023418318fdb3c61b4d070f5d
parent9b86ebb4f605619d4af14d6260a338c38496b492
Don't remove pack from pack list for problems which could be transient

If we hit a corrupt object or invalid pack remove the pack from the pack
list. Other IOException could be transient hence we should not remove
the pack from the list to avoid the problem reported on the Gerrit list
[1]. It looks like in the reported case the pack was removed from the
pack list causing MissingObjectExceptions which disappear when the
server is restarted.

[1] https://groups.google.com/forum/#!topic/repo-discuss/Qdmbl-YZ4NU

Change-Id: I331626110d54b190e46cddc2c40f29ddeb9613cd
Signed-off-by: Matthias Sohn <matthias.sohn@sap.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