aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-02 10:04:20 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-06-02 10:04:20 +0200
commit737435b7013aebaf67e2baddbbbeb17174ac4aaa (patch)
tree6abb2c57400f69e0245937520a9756cde0495918 /server
parent9a4eac301911efe683d573a13378ca87b551d35d (diff)
downloadsonarqube-737435b7013aebaf67e2baddbbbeb17174ac4aaa.tar.gz
sonarqube-737435b7013aebaf67e2baddbbbeb17174ac4aaa.zip
SONAR-6950 actually log error during cleanup of CE container
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/computation/container/ComputeEngineContainerImpl.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/container/ComputeEngineContainerImpl.java b/server/sonar-server/src/main/java/org/sonar/server/computation/container/ComputeEngineContainerImpl.java
index fee223a331f..2c96179620d 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/computation/container/ComputeEngineContainerImpl.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/computation/container/ComputeEngineContainerImpl.java
@@ -37,9 +37,9 @@ import org.sonar.server.computation.activity.ActivityManager;
import org.sonar.server.computation.batch.BatchReportDirectoryHolderImpl;
import org.sonar.server.computation.batch.BatchReportReaderImpl;
import org.sonar.server.computation.component.DbComponentsRefCache;
+import org.sonar.server.computation.component.ProjectSettingsRepository;
import org.sonar.server.computation.component.TreeRootHolderImpl;
import org.sonar.server.computation.event.EventRepositoryImpl;
-import org.sonar.server.computation.component.ProjectSettingsRepository;
import org.sonar.server.computation.issue.IssueCache;
import org.sonar.server.computation.issue.IssueComputation;
import org.sonar.server.computation.issue.RuleCache;
@@ -153,7 +153,15 @@ public class ComputeEngineContainerImpl extends ComponentContainer implements Co
}
public void cleanup() {
- stopComponents(true);
+ ReportQueue.Item item = null;
+ try {
+ item = getComponentByType(ReportQueue.Item.class);
+ stopComponents();
+ } catch (Throwable t) {
+ Loggers.get(ComputeEngineContainerImpl.class).error(
+ String.format("Cleanup of container for item '%s' failed", item == null ? null : item.dto),
+ t);
+ }
}
@Override