aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ce/src
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-10-19 12:16:11 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-10-19 16:58:44 +0200
commit129c13bae4afcc3bb924841a6431e9bf7ebd4d4a (patch)
tree53355e3e72f4a416a0e06d4b5bbb6f2c5b5f1ba1 /server/sonar-ce/src
parentf0f885748a2c1442690970de335c64fdd30791b4 (diff)
downloadsonarqube-129c13bae4afcc3bb924841a6431e9bf7ebd4d4a.tar.gz
sonarqube-129c13bae4afcc3bb924841a6431e9bf7ebd4d4a.zip
Do not crash with technical errors when cluster is enabled
Diffstat (limited to 'server/sonar-ce/src')
-rw-r--r--server/sonar-ce/src/main/java/org/sonar/ce/CeDistributedInformationImpl.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/CeDistributedInformationImpl.java b/server/sonar-ce/src/main/java/org/sonar/ce/CeDistributedInformationImpl.java
index 23152f3521a..97b8c2a55b2 100644
--- a/server/sonar-ce/src/main/java/org/sonar/ce/CeDistributedInformationImpl.java
+++ b/server/sonar-ce/src/main/java/org/sonar/ce/CeDistributedInformationImpl.java
@@ -25,8 +25,8 @@ import java.util.Set;
import java.util.concurrent.locks.Lock;
import org.picocontainer.Startable;
import org.sonar.ce.taskprocessor.CeWorkerFactory;
-import org.sonar.process.cluster.hz.HazelcastObjects;
import org.sonar.process.cluster.hz.HazelcastMember;
+import org.sonar.process.cluster.hz.HazelcastObjects;
import static org.sonar.core.util.stream.MoreCollectors.toSet;
import static org.sonar.process.cluster.hz.HazelcastObjects.WORKER_UUIDS;
@@ -43,6 +43,10 @@ public class CeDistributedInformationImpl implements CeDistributedInformation, S
this.ceCeWorkerFactory = ceCeWorkerFactory;
}
+ public CeDistributedInformationImpl(CeWorkerFactory ceCeWorkerFactory) {
+ this(null, ceCeWorkerFactory);
+ }
+
@Override
public Set<String> getWorkerUUIDs() {
Set<String> connectedWorkerUUIDs = hazelcastMember.getMemberUuids();