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:
Edwin Kempin
2020-09-01 06:00:01 +00:00
parent 2dd99cca73
commit a663643c31

View File

@@ -952,17 +952,9 @@ class ReceiveCommits {
updateGroups.forEach(r -> r.addOps(bu));
logger.atFine().log("Executing batch");
try {
retryHelper
.changeUpdate(
"insertChangesAndPatchSets",
() -> {
bu.execute();
return null;
})
.call();
} catch (Exception e) {
bu.execute();
} catch (UpdateException e) {
throw asRestApiException(e);
}