From d5ed6c54471951326e987953c51f52f7e6433e37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Wed, 19 Jul 2017 14:20:49 +0200 Subject: [PATCH] fix possible dead lock on table CE_SCANNER_CONTEXT on MySQL --- .../task/projectanalysis/step/PersistScannerContextStep.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java index c9bddaea9c1..4f64993cb6e 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/step/PersistScannerContextStep.java @@ -53,6 +53,7 @@ public class PersistScannerContextStep implements ComputationStep { // for total reliability, we rather delete the existing row as we don't want to assume the content // consistent with the report dbClient.ceScannerContextDao().deleteByUuids(dbSession, singleton(ceTask.getUuid())); + dbSession.commit(); dbClient.ceScannerContextDao().insert(dbSession, ceTask.getUuid(), logsIterator); dbSession.commit(); } -- 2.39.5