]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7842 ensure exception in task management code is not swallowed
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 12 Aug 2016 17:18:43 +0000 (19:18 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 18 Aug 2016 10:33:50 +0000 (12:33 +0200)
server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java

index 617ef9d266ff17fabcb68fa4957bd947ec5b8606..7b0ad5f558da996d725e98b57df76e641735ff5f 100644 (file)
@@ -53,7 +53,11 @@ public class CeWorkerCallableImpl implements CeWorkerCallable {
       return false;
     }
 
-    executeTask(ceTask.get());
+    try {
+      executeTask(ceTask.get());
+    } catch (Exception e) {
+      LOG.error("An error occurred while managing task " + ceTask.get().getUuid(), e);
+    }
     return true;
   }