diff options
author | Luca Milanesio <luca.milanesio@gmail.com> | 2017-03-10 00:20:23 +0000 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2017-03-15 23:43:39 +0100 |
commit | 4c558225dc991a34d59bc4fb0d4e6f1f6974f53c (patch) | |
tree | fabe1960e925c77c9b280ae3c8fdf3004957a0e7 /org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit | |
parent | 4ddd4a3d1b38ecf908978d596531ac9cdc7544dd (diff) | |
download | jgit-4c558225dc991a34d59bc4fb0d4e6f1f6974f53c.tar.gz jgit-4c558225dc991a34d59bc4fb0d4e6f1f6974f53c.zip |
Don't remove pack when FileNotFoundException is transient
The FileNotFoundException is typically raised in three conditions:
1. file doesn't exist
2. incompatible read vs. read/write open modes
3. filesystem locking
4. temporary lack of resources (e.g. too many open files)
1. is already managed, 2. would never happen as packs are not
overwritten while with 3. and 4. it is worth logging the exception and
retrying to read the pack again.
Log transient errors using an exponential backoff strategy to avoid
flooding the logs with the same error if consecutive retries to access
the pack fail repeatedly.
Bug: 513435
Change-Id: I03c6f6891de3c343d3d517092eaa75dba282c0cd
Signed-off-by: Luca Milanesio <luca.milanesio@gmail.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit')
0 files changed, 0 insertions, 0 deletions