From: Sébastien Lesaint Date: Wed, 19 Jul 2017 12:20:49 +0000 (+0200) Subject: fix possible dead lock on table CE_SCANNER_CONTEXT on MySQL X-Git-Tag: 6.6-RC1~869 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5ed6c54471951326e987953c51f52f7e6433e37;p=sonarqube.git fix possible dead lock on table CE_SCANNER_CONTEXT on MySQL --- 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(); }