diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-04 07:59:31 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-25 10:48:38 +0100 |
commit | dd05e4b94d67b481c241cfa20ccf0e481dcb0bd7 (patch) | |
tree | d48af28cb2c6651f6a7424d599dfeb1610b8c931 /metrics-proxy | |
parent | db01dd9ebc4f63acc71d4ef9b015db4133a5de6d (diff) |
Bump apache httpclient from 5.1 to 5.2.
Diffstat (limited to 'metrics-proxy')
2 files changed, 3 insertions, 1 deletions
diff --git a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java index d4f04cdb3fc..3baed3e1b04 100644 --- a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java +++ b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java @@ -28,7 +28,6 @@ import java.util.concurrent.TimeoutException; import java.util.concurrent.CancellationException; import java.util.logging.Level; import java.util.logging.Logger; -import java.util.stream.Collectors; import static ai.vespa.metricsproxy.http.ValuesFetcher.defaultMetricsConsumerId; @@ -188,6 +187,7 @@ public class ApplicationMetricsRetriever extends AbstractComponent implements Ru .toList(); } + @SuppressWarnings("deprecation") static CloseableHttpAsyncClient createHttpClient() { return VespaAsyncHttpClientBuilder.create() .setIOReactorConfig(IOReactorConfig.custom() diff --git a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/service/HttpMetricFetcher.java b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/service/HttpMetricFetcher.java index 790b3298a81..f766bebe4a2 100644 --- a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/service/HttpMetricFetcher.java +++ b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/service/HttpMetricFetcher.java @@ -46,6 +46,7 @@ public abstract class HttpMetricFetcher { log.log(Level.FINE, () -> "Fetching metrics from " + u + " with timeout " + CONNECTION_TIMEOUT); } + @SuppressWarnings("deprecation") CloseableHttpResponse getResponse() throws IOException { log.log(Level.FINE, () -> "Connecting to url " + url + " for service '" + service + "'"); return httpClient.execute(new HttpGet(url)); @@ -80,6 +81,7 @@ public abstract class HttpMetricFetcher { } } + @SuppressWarnings("deprecation") private static CloseableHttpClient createHttpClient() { return VespaHttpClientBuilder.create(registry -> { var mgr = new PoolingHttpClientConnectionManager(registry); |