diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-08-12 19:18:43 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-08-18 12:33:50 +0200 |
commit | 3106078fe9a0f0c778f77c551f0e09d02d46cfa0 (patch) | |
tree | 7f46328d79f6295712c62e653834c9830c4afabd /server | |
parent | 917574dcd1a9c4ea379cb22c65031b9b2f11fa97 (diff) | |
download | sonarqube-3106078fe9a0f0c778f77c551f0e09d02d46cfa0.tar.gz sonarqube-3106078fe9a0f0c778f77c551f0e09d02d46cfa0.zip |
SONAR-7842 ensure exception in task management code is not swallowed
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java b/server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java index 617ef9d266f..7b0ad5f558d 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/taskprocessor/CeWorkerCallableImpl.java @@ -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; } |