Revert "ReceiveCommits: Retry inserting changes and patch sets"
This reverts commit 7f3121bec4
.
Reason for revert: The retrying doesn't work and always fails with
"java.lang.IllegalArgumentException: cannot chain ref update" and as
a result the user gets non-understandable error message.
Change-Id: I6a5c8ea4aabaf2cafba7a551cb6a1156c2751948
This commit is contained in:
@@ -952,17 +952,9 @@ class ReceiveCommits {
|
|||||||
updateGroups.forEach(r -> r.addOps(bu));
|
updateGroups.forEach(r -> r.addOps(bu));
|
||||||
|
|
||||||
logger.atFine().log("Executing batch");
|
logger.atFine().log("Executing batch");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
retryHelper
|
bu.execute();
|
||||||
.changeUpdate(
|
} catch (UpdateException e) {
|
||||||
"insertChangesAndPatchSets",
|
|
||||||
() -> {
|
|
||||||
bu.execute();
|
|
||||||
return null;
|
|
||||||
})
|
|
||||||
.call();
|
|
||||||
} catch (Exception e) {
|
|
||||||
throw asRestApiException(e);
|
throw asRestApiException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user