Merge "Fail on LOCK_FAILURE during merge even if we plan to retry"
This commit is contained in:
@@ -650,11 +650,15 @@ public class MergeOp {
|
||||
break;
|
||||
|
||||
case LOCK_FAILURE:
|
||||
String msg;
|
||||
if (strategy.retryOnLockFailure()) {
|
||||
mergeQueue.recheckAfter(destBranch, random.nextInt(1000),
|
||||
MILLISECONDS);
|
||||
msg = "will retry";
|
||||
} else {
|
||||
msg = "will not retry";
|
||||
}
|
||||
break;
|
||||
throw new IOException(branchUpdate.getResult().name() + ", " + msg);
|
||||
default:
|
||||
throw new IOException(branchUpdate.getResult().name());
|
||||
}
|
||||
|
Reference in New Issue
Block a user