From a3a5145e7339f764bb3a3c333e0937077866f243 Mon Sep 17 00:00:00 2001 From: Stephan Pelikan Date: Thu, 9 Jan 2025 09:46:12 +0100 Subject: [PATCH] Fix infinite loop in case of stale optimistic locking exception --- .../camunda8/deployment/DeploymentService.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-boot/src/main/java/io/vanillabp/camunda8/deployment/DeploymentService.java b/spring-boot/src/main/java/io/vanillabp/camunda8/deployment/DeploymentService.java index fee3174..388cc5d 100644 --- a/spring-boot/src/main/java/io/vanillabp/camunda8/deployment/DeploymentService.java +++ b/spring-boot/src/main/java/io/vanillabp/camunda8/deployment/DeploymentService.java @@ -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); } @@ -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, @@ -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); } @@ -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,