Merge "Fail on LOCK_FAILURE during merge even if we plan to retry"

This commit is contained in:
Shawn Pearce
2012-10-16 12:27:58 -07:00
committed by Gerrit Code Review

View File

@@ -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());
}