diff options
author | Jacek <jacek.poreda@sonarsource.com> | 2019-10-21 15:49:34 -0500 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-11-12 20:21:06 +0100 |
commit | fc3085b6cb8e80b93842b9742794a11414d11198 (patch) | |
tree | 809abed588cbdbcdfc35d61c4b317e85e4a767b6 /server/sonar-main | |
parent | ef59775a55e42caf1cfe6c5064458d15b1890747 (diff) | |
download | sonarqube-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/sonar-main')
-rw-r--r-- | server/sonar-main/src/main/java/org/sonar/application/es/EsConnectorImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
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(",")))); } } |