jgit/org.eclipse.jgit.test
Dave Borowitz 6f23210781 RefDirectory: Retry acquiring ref locks with backoff
If a repo frequently uses PackedBatchRefUpdates, there is likely to be
contention on the packed-refs file, so it's not appropriate to fail
immediately the first time we fail to acquire a lock. Add some logic to
RefDirectory to support general retrying of lock acquisition.

Currently, there is a hard-coded wait starting at 100ms and backing off
exponentially to 1600ms, for about 3s of total wait. This is no worse
than the hard-coded backoff that JGit does elsewhere, e.g. in
FileUtils#delete. One can imagine a scheme that uses per-repository
configuration of backoff, and the current interface would support this
without changing any callers.

Change-Id: I4764e11270d9336882483eb698f67a78a401c251
2017-07-28 07:53:25 -04:00
..
.settings Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
META-INF Add dfs fsck implementation 2017-07-26 10:12:29 -07:00
exttst/org/eclipse/jgit Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
src/org/eclipse/jgit/lib Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
tst/org/eclipse/jgit RefDirectory: Retry acquiring ref locks with backoff 2017-07-28 07:53:25 -04:00
tst-rsrc Support -merge attribute in binary macro 2017-06-27 10:33:50 +02:00
.classpath Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
.gitignore Extend the FS class for Java7 2013-05-04 02:01:56 +02:00
.project Remove references to org.eclipse.jgit.java7 2016-08-05 11:22:27 +09:00
BUILD Add remaining parts of the bazel build 2017-03-21 09:24:12 +01:00
build.properties Add missing dependency to slf4j-log4j bridge 2016-09-05 04:53:14 -04:00
org.eclipse.jgit.core--All-Tests (Java 8) (de).launch Fixed few locale dependent pgm tests 2016-01-02 17:41:58 +01:00
org.eclipse.jgit.core--All-Tests (Java 8).launch Fix classpath of test launch configurations 2015-11-21 00:33:43 +01:00
org.eclipse.jgit.core--All-Tests.launch Use JUnit4 for tests 2010-08-26 12:26:38 -05:00
org.eclipse.jgit.test-WalkEncryptionTest-Proxy.launch Adding AES Walk Encryption support in http://www.jets3t.org/ mode 2015-10-18 19:14:31 +00:00
org.eclipse.jgit.test-WalkEncryptionTest.launch Adding AES Walk Encryption support in http://www.jets3t.org/ mode 2015-10-18 19:14:31 +00:00
plugin.properties Fix plugin provider names to conform with release train requirement 2013-04-08 23:05:36 +02:00
pom.xml Prepare 4.9.0-SNAPSHOT builds 2017-05-30 13:42:07 +02:00
tests.bzl bazel: Consume hamcrest through transitive dependency 2017-03-23 06:47:49 +01:00