tuned to be a bit more less persistent on concurrency conflicts
This commit is contained in:
parent
683263b9d9
commit
63cf63499d
1 changed files with 2 additions and 2 deletions
|
@ -314,12 +314,12 @@ public class RequestEvaluator implements Runnable {
|
||||||
} catch (ConcurrencyException x) {
|
} catch (ConcurrencyException x) {
|
||||||
|
|
||||||
res.reset ();
|
res.reset ();
|
||||||
if (++tries < 10) {
|
if (++tries < 5) {
|
||||||
// try again after waiting some period
|
// try again after waiting some period
|
||||||
abortTransaction (true);
|
abortTransaction (true);
|
||||||
try {
|
try {
|
||||||
// wait a bit longer with each try
|
// wait a bit longer with each try
|
||||||
int base = 200 * tries;
|
int base = 500 * tries;
|
||||||
Thread.currentThread ().sleep ((long) (base + Math.random ()*base*2));
|
Thread.currentThread ().sleep ((long) (base + Math.random ()*base*2));
|
||||||
} catch (Exception ignore) {}
|
} catch (Exception ignore) {}
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue