Merge "ReceiveCommits: Retry inserting changes and patch sets"
This commit is contained in:
@@ -933,9 +933,17 @@ 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
|
||||||
|
.changeUpdate(
|
||||||
|
"insertChangesAndPatchSets",
|
||||||
|
() -> {
|
||||||
bu.execute();
|
bu.execute();
|
||||||
} catch (UpdateException e) {
|
return null;
|
||||||
|
})
|
||||||
|
.call();
|
||||||
|
} catch (Exception e) {
|
||||||
throw asRestApiException(e);
|
throw asRestApiException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user