aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2019-10-21 15:49:34 -0500
committerSonarTech <sonartech@sonarsource.com>2019-11-12 20:21:06 +0100
commitfc3085b6cb8e80b93842b9742794a11414d11198 (patch)
tree809abed588cbdbcdfc35d61c4b317e85e4a767b6 /server
parentef59775a55e42caf1cfe6c5064458d15b1890747 (diff)
downloadsonarqube-fc3085b6cb8e80b93842b9742794a11414d11198.tar.gz
sonarqube-fc3085b6cb8e80b93842b9742794a11414d11198.zip
SONAR-12383 Selenide update to 5.2.3 and Guava update to 28.1-jre
Diffstat (limited to 'server')
-rw-r--r--server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ComputeQProfileMeasureStepTest.java1
-rw-r--r--server/sonar-ce/src/main/java/org/sonar/ce/taskprocessor/CeProcessingSchedulerImpl.java5
-rw-r--r--server/sonar-main/src/main/java/org/sonar/application/es/EsConnectorImpl.java6
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/es/EsClientProvider.java2
4 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ComputeQProfileMeasureStepTest.java b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ComputeQProfileMeasureStepTest.java
index 7aa0f353bc2..12bf8075bd1 100644
--- a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ComputeQProfileMeasureStepTest.java
+++ b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/step/ComputeQProfileMeasureStepTest.java
@@ -39,7 +39,6 @@ import org.sonar.server.qualityprofile.QualityProfile;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
-import static org.assertj.guava.api.Assertions.assertThat;
import static org.sonar.api.measures.CoreMetrics.QUALITY_PROFILES;
import static org.sonar.api.measures.CoreMetrics.QUALITY_PROFILES_KEY;
import static org.sonar.ce.task.projectanalysis.component.Component.Type.DIRECTORY;
diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/taskprocessor/CeProcessingSchedulerImpl.java b/server/sonar-ce/src/main/java/org/sonar/ce/taskprocessor/CeProcessingSchedulerImpl.java
index f75d8aebe9e..5325dd426c5 100644
--- a/server/sonar-ce/src/main/java/org/sonar/ce/taskprocessor/CeProcessingSchedulerImpl.java
+++ b/server/sonar-ce/src/main/java/org/sonar/ce/taskprocessor/CeProcessingSchedulerImpl.java
@@ -23,6 +23,7 @@ import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.ListenableScheduledFuture;
+import com.google.common.util.concurrent.MoreExecutors;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
import javax.annotation.CheckForNull;
@@ -68,7 +69,7 @@ public class CeProcessingSchedulerImpl implements CeProcessingScheduler {
public void startScheduling() {
for (ChainingCallback chainingCallback : chainingCallbacks) {
ListenableScheduledFuture<CeWorker.Result> future = executorService.schedule(chainingCallback.worker, delayBetweenEnabledTasks, timeUnit);
- addCallback(future, chainingCallback);
+ addCallback(future, chainingCallback, MoreExecutors.directExecutor());
}
}
@@ -200,7 +201,7 @@ public class CeProcessingSchedulerImpl implements CeProcessingScheduler {
private void addCallback() {
if (workerFuture != null) {
- Futures.addCallback(workerFuture, this);
+ Futures.addCallback(workerFuture, this, MoreExecutors.directExecutor());
}
}
diff --git a/server/sonar-main/src/main/java/org/sonar/application/es/EsConnectorImpl.java b/server/sonar-main/src/main/java/org/sonar/application/es/EsConnectorImpl.java
index 3ab89817001..d03ad986b37 100644
--- a/server/sonar-main/src/main/java/org/sonar/application/es/EsConnectorImpl.java
+++ b/server/sonar-main/src/main/java/org/sonar/application/es/EsConnectorImpl.java
@@ -105,16 +105,16 @@ public class EsConnectorImpl implements EsConnector {
boolean connectedToOneHost = false;
for (HostAndPort hostAndPort : hostAndPorts) {
try {
- addTransportAddress(new TransportAddress(InetAddress.getByName(hostAndPort.getHostText()), hostAndPort.getPortOrDefault(9001)));
+ addTransportAddress(new TransportAddress(InetAddress.getByName(hostAndPort.getHost()), hostAndPort.getPortOrDefault(9001)));
connectedToOneHost = true;
} catch (UnknownHostException e) {
- LOG.debug("Can not resolve host [" + hostAndPort.getHostText() + "]", e);
+ LOG.debug("Can not resolve host [" + hostAndPort.getHost() + "]", e);
}
}
if (!connectedToOneHost) {
throw new IllegalStateException(format("Can not connect to one node from [%s]",
hostAndPorts.stream()
- .map(h -> format("%s:%d", h.getHostText(), h.getPortOrDefault(9001)))
+ .map(h -> format("%s:%d", h.getHost(), h.getPortOrDefault(9001)))
.collect(Collectors.joining(","))));
}
}
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/es/EsClientProvider.java b/server/sonar-server-common/src/main/java/org/sonar/server/es/EsClientProvider.java
index b84ab902146..87d8fdd16e0 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/es/EsClientProvider.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/es/EsClientProvider.java
@@ -88,7 +88,7 @@ public class EsClientProvider extends ProviderAdapter {
private static void addHostToClient(HostAndPort host, TransportClient client) {
try {
- client.addTransportAddress(new TransportAddress(InetAddress.getByName(host.getHostText()), host.getPortOrDefault(9001)));
+ client.addTransportAddress(new TransportAddress(InetAddress.getByName(host.getHost()), host.getPortOrDefault(9001)));
} catch (UnknownHostException e) {
throw new IllegalStateException("Can not resolve host [" + host + "]", e);
}