Skip to content

Commit

Permalink
Fix infinite loop in case of stale optimistic locking exception
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanpelikan committed Jan 9, 2025
1 parent 0c9d796 commit a3a5145
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public DeployedBpmn recoverAddBpmn(
final int fileId,
final String resourceName) {

return recoverAddBpmn(exception, model, fileId, resourceName);
return staleRecoverAddBpmn(exception, model, fileId, resourceName);

}

Expand All @@ -74,11 +74,11 @@ public DeployedBpmn recoverAddBpmn(
final int fileId,
final String resourceName) {

return recoverAddBpmn(exception, model, fileId, resourceName);
return staleRecoverAddBpmn(exception, model, fileId, resourceName);

}

private DeployedBpmn recoverAddBpmn(
private DeployedBpmn staleRecoverAddBpmn(
final Exception exception,
final BpmnModelInstance model,
final int fileId,
Expand Down Expand Up @@ -129,7 +129,7 @@ public DeployedProcess recoverAddProcess(
final Process camunda8DeployedProcess,
final DeployedBpmn bpmn) {

return recoverAddProcess(exception, packageId, camunda8DeployedProcess, bpmn);
return staleRecoverAddProcess(exception, packageId, camunda8DeployedProcess, bpmn);

}

Expand All @@ -140,11 +140,11 @@ public DeployedProcess recoverAddProcess(
final Process camunda8DeployedProcess,
final DeployedBpmn bpmn) {

return recoverAddProcess(exception, packageId, camunda8DeployedProcess, bpmn);
return staleRecoverAddProcess(exception, packageId, camunda8DeployedProcess, bpmn);

}

private DeployedProcess recoverAddProcess(
private DeployedProcess staleRecoverAddProcess(
final Exception exception,
final int packageId,
final Process camunda8DeployedProcess,
Expand Down

0 comments on commit a3a5145

Please sign in to comment.