]> source.dussan.org Git - jgit.git/commit
Retry loading config when locked by another process 30/126730/3
authorMichael Keppler <Michael.Keppler@gmx.de>
Sun, 29 Jul 2018 05:53:11 +0000 (07:53 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 10 Jun 2019 17:59:17 +0000 (19:59 +0200)
commite9abe09809097b431cf2acc50066435ea2cc0a53
tree635ee0586ea4a6ba496e60d35e39b0246f4fa8fb
parent8a2e221096f38ef0ab3d2e75d8ac81ad189695b0
Retry loading config when locked by another process

When loading the config, a FileNotFoundException may occur if the file
exists but cannot be read (see [1]). This is the case on Windows with a
virus scanner checking the file. Therefore if the file exists and that
exception is thrown, retry multiple times, similar to how this was
already implemented for IOException.

[1] https://docs.oracle.com/javase/8/docs/api/java/io/FileNotFoundException.html

Bug: 529522
Change-Id: Ic5dc3b7b24bb0005d6256ed00513bc7c0b91e613
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
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/storage/file/FileBasedConfig.java