aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-04-08 23:04:38 +0200
committerGitHub <noreply@github.com>2021-04-08 23:04:38 +0200
commita12cae87144c24682883f550e19341df9e03d4da (patch)
treea568fa0f2eebae1ff0a760f2de2c3280e9a6aaa3 /config
parentf5e6496a5b8e39371ca56c3ae1147d5fc6fd43cd (diff)
Revert "Revert "Revert "Revert "Unify on hc5""""
Diffstat (limited to 'config')
-rw-r--r--config/src/main/java/com/yahoo/vespa/config/ConfigVerification.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/ConfigVerification.java b/config/src/main/java/com/yahoo/vespa/config/ConfigVerification.java
index d3f80d8c3f5..68a1d9b7333 100644
--- a/config/src/main/java/com/yahoo/vespa/config/ConfigVerification.java
+++ b/config/src/main/java/com/yahoo/vespa/config/ConfigVerification.java
@@ -1,13 +1,14 @@
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config;
-import ai.vespa.util.http.hc4.VespaHttpClientBuilder;
+import ai.vespa.util.http.hc5.VespaHttpClientBuilder;
import com.yahoo.slime.ArrayTraverser;
import com.yahoo.slime.Slime;
import com.yahoo.slime.SlimeUtils;
-import org.apache.http.client.methods.HttpGet;
-import org.apache.http.impl.client.BasicResponseHandler;
-import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.hc.client5.http.classic.methods.HttpGet;
+import org.apache.hc.client5.http.impl.classic.BasicHttpClientResponseHandler;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
+import org.apache.hc.client5.http.impl.io.BasicHttpClientConnectionManager;
import java.io.IOException;
import java.util.ArrayList;
@@ -37,7 +38,7 @@ public class ConfigVerification {
for (String arg : args) {
configservers.add(prefix + arg + ":" + port + "/config/v2/tenant/" + tenant + "/application/" + appName + "/environment/" + environment + "/region/" + region + "/instance/" + instance + "/?recursive=true");
}
- try (CloseableHttpClient httpClient = VespaHttpClientBuilder.createWithBasicConnectionManager().build()) {
+ try (CloseableHttpClient httpClient = VespaHttpClientBuilder.create(BasicHttpClientConnectionManager::new).build()) {
System.exit(compareConfigs(listConfigs(configservers, httpClient), httpClient));
}
}
@@ -91,6 +92,6 @@ public class ConfigVerification {
}
private static String performRequest(String url, CloseableHttpClient httpClient) throws IOException {
- return httpClient.execute(new HttpGet(url), new BasicResponseHandler());
+ return httpClient.execute(new HttpGet(url), new BasicHttpClientResponseHandler());
}
}