knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject knox git commit: KNOX-784 Fix for httpclientconnection metric naming conflict
Date Fri, 11 Nov 2016 11:59:45 GMT
Repository: knox
Updated Branches:
  refs/heads/master f345f8895 -> 13cea0c5e


KNOX-784 Fix for httpclientconnection metric naming conflict


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/13cea0c5
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/13cea0c5
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/13cea0c5

Branch: refs/heads/master
Commit: 13cea0c5eb39fb22e23505575a76b06a58d3d0ec
Parents: f345f88
Author: Sumit Gupta <sumit@apache.org>
Authored: Fri Nov 11 06:58:31 2016 -0500
Committer: Sumit Gupta <sumit@apache.org>
Committed: Fri Nov 11 06:58:31 2016 -0500

----------------------------------------------------------------------
 .../metrics/impl/instr/InstrHttpClientBuilderProvider.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/13cea0c5/gateway-server/src/main/java/org/apache/hadoop/gateway/services/metrics/impl/instr/InstrHttpClientBuilderProvider.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/services/metrics/impl/instr/InstrHttpClientBuilderProvider.java
b/gateway-server/src/main/java/org/apache/hadoop/gateway/services/metrics/impl/instr/InstrHttpClientBuilderProvider.java
index d85687b..eb3ec57 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/services/metrics/impl/instr/InstrHttpClientBuilderProvider.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/services/metrics/impl/instr/InstrHttpClientBuilderProvider.java
@@ -39,7 +39,7 @@ public class InstrHttpClientBuilderProvider implements InstrumentationProvider<H
   public HttpClientBuilder getInstrumented(MetricsContext metricsContext) {
     MetricRegistry registry = (MetricRegistry) metricsContext.getProperty(DefaultMetricsService.METRICS_REGISTRY);
     return  HttpClientBuilder.create().setRequestExecutor(new InstrumentedHttpRequestExecutor(registry,
TOPOLOGY_URL_AND_METHOD)).
-        setConnectionManager(new InstrumentedHttpClientConnectionManager(registry));
+        setConnectionManager(new PoolingHttpClientConnectionManager());
   }
 
   @Override


Mime
View raw message