knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject [01/24] knox git commit: KNOX-491: Increase default replay buffer size to 8K
Date Fri, 30 Jan 2015 02:03:39 GMT
Repository: knox
Updated Branches:
  refs/heads/KNOX-481 78a4f9a27 -> 749a57fc4


KNOX-491: Increase default replay buffer size to 8K


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

Branch: refs/heads/KNOX-481
Commit: 8a2ae7d116e06cfef9ca82416670ec963c5850f6
Parents: c1b9a27
Author: Kevin Minder <kevin.minder@hortonworks.com>
Authored: Tue Jan 27 16:11:02 2015 -0500
Committer: Kevin Minder <kevin.minder@hortonworks.com>
Committed: Tue Jan 27 16:11:02 2015 -0500

----------------------------------------------------------------------
 .../gateway/deploy/impl/DispatchDeploymentContributor.java       | 2 +-
 .../hadoop/gateway/hbase/HBaseDispatchDeploymentContributor.java | 2 +-
 .../hadoop/gateway/hive/HiveDispatchDeploymentContributor.java   | 2 +-
 .../apache/hadoop/gateway/oozie/OozieDeploymentContributor.java  | 4 ++--
 .../org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java   | 1 -
 5 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/8a2ae7d1/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/impl/DispatchDeploymentContributor.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/impl/DispatchDeploymentContributor.java
b/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/impl/DispatchDeploymentContributor.java
index 08b74c4..e26d7b0 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/impl/DispatchDeploymentContributor.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/impl/DispatchDeploymentContributor.java
@@ -33,7 +33,7 @@ public class DispatchDeploymentContributor extends ProviderDeploymentContributor
   private static final String REPLAY_BUFFER_SIZE_PARAM = "replayBufferSize";
   
   // Default global replay buffer size in KB
-  public static final String DEFAULT_REPLAY_BUFFER_SIZE = "4";
+  public static final String DEFAULT_REPLAY_BUFFER_SIZE = "8";
 
   @Override
   public String getRole() {

http://git-wip-us.apache.org/repos/asf/knox/blob/8a2ae7d1/gateway-service-hbase/src/main/java/org/apache/hadoop/gateway/hbase/HBaseDispatchDeploymentContributor.java
----------------------------------------------------------------------
diff --git a/gateway-service-hbase/src/main/java/org/apache/hadoop/gateway/hbase/HBaseDispatchDeploymentContributor.java
b/gateway-service-hbase/src/main/java/org/apache/hadoop/gateway/hbase/HBaseDispatchDeploymentContributor.java
index 3eb24cb..85a7911 100644
--- a/gateway-service-hbase/src/main/java/org/apache/hadoop/gateway/hbase/HBaseDispatchDeploymentContributor.java
+++ b/gateway-service-hbase/src/main/java/org/apache/hadoop/gateway/hbase/HBaseDispatchDeploymentContributor.java
@@ -32,7 +32,7 @@ public class HBaseDispatchDeploymentContributor extends ProviderDeploymentContri
   private static final String REPLAY_BUFFER_SIZE_PARAM = "replayBufferSize";
   
   // Default global replay buffer size in KB
-  public static final String DEFAULT_REPLAY_BUFFER_SIZE = "4";
+  public static final String DEFAULT_REPLAY_BUFFER_SIZE = "8";
 
   @Override
   public String getRole() {

http://git-wip-us.apache.org/repos/asf/knox/blob/8a2ae7d1/gateway-service-hive/src/main/java/org/apache/hadoop/gateway/hive/HiveDispatchDeploymentContributor.java
----------------------------------------------------------------------
diff --git a/gateway-service-hive/src/main/java/org/apache/hadoop/gateway/hive/HiveDispatchDeploymentContributor.java
b/gateway-service-hive/src/main/java/org/apache/hadoop/gateway/hive/HiveDispatchDeploymentContributor.java
index 3cb58ab..135a08f 100644
--- a/gateway-service-hive/src/main/java/org/apache/hadoop/gateway/hive/HiveDispatchDeploymentContributor.java
+++ b/gateway-service-hive/src/main/java/org/apache/hadoop/gateway/hive/HiveDispatchDeploymentContributor.java
@@ -35,7 +35,7 @@ public class HiveDispatchDeploymentContributor extends ProviderDeploymentContrib
   private static final String REPLAY_BUFFER_SIZE_PARAM = "replayBufferSize";
   
   // Default global replay buffer size in KB
-  public static final String DEFAULT_REPLAY_BUFFER_SIZE = "4";
+  public static final String DEFAULT_REPLAY_BUFFER_SIZE = "8";
 
   @Override
   public String getRole() {

http://git-wip-us.apache.org/repos/asf/knox/blob/8a2ae7d1/gateway-service-oozie/src/main/java/org/apache/hadoop/gateway/oozie/OozieDeploymentContributor.java
----------------------------------------------------------------------
diff --git a/gateway-service-oozie/src/main/java/org/apache/hadoop/gateway/oozie/OozieDeploymentContributor.java
b/gateway-service-oozie/src/main/java/org/apache/hadoop/gateway/oozie/OozieDeploymentContributor.java
index 63f3c70..4d56faa 100644
--- a/gateway-service-oozie/src/main/java/org/apache/hadoop/gateway/oozie/OozieDeploymentContributor.java
+++ b/gateway-service-oozie/src/main/java/org/apache/hadoop/gateway/oozie/OozieDeploymentContributor.java
@@ -41,7 +41,7 @@ public class OozieDeploymentContributor extends ServiceDeploymentContributorBase
   private static final String REPLAY_BUFFER_SIZE_PARAM = "replayBufferSize";
   
   // Oozie replay buffer size in KB
-  private static final String OOZIW_REPLAY_BUFFER_SIZE = "8";
+  private static final String DEFAULT_REPLAY_BUFFER_SIZE = "8";
 
   @Override
   public String getRole() {
@@ -109,7 +109,7 @@ public class OozieDeploymentContributor extends ServiceDeploymentContributorBase
     List<FilterParamDescriptor> filterParams = new ArrayList<FilterParamDescriptor>();
     FilterParamDescriptor filterParamDescriptor = resource.createFilterParam();
     filterParamDescriptor.name(REPLAY_BUFFER_SIZE_PARAM);
-    filterParamDescriptor.value(OOZIW_REPLAY_BUFFER_SIZE);
+    filterParamDescriptor.value( DEFAULT_REPLAY_BUFFER_SIZE );
     filterParams.add(filterParamDescriptor);
     context.contributeFilter(service, resource, "dispatch", "http-client", filterParams);
   }

http://git-wip-us.apache.org/repos/asf/knox/blob/8a2ae7d1/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
----------------------------------------------------------------------
diff --git a/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
b/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
index c79ad6b..4de9730 100644
--- a/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
+++ b/gateway-spi/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
@@ -74,7 +74,6 @@ public class HttpClientDispatch extends AbstractGatewayDispatch {
    protected static SpiGatewayResources RES = ResourcesFactory.get(SpiGatewayResources.class);
    protected static Auditor auditor = AuditServiceFactory.getAuditService().getAuditor(AuditConstants.DEFAULT_AUDITOR_NAME,
          AuditConstants.KNOX_SERVICE_NAME, AuditConstants.KNOX_COMPONENT_NAME);
-   private static final int DEFAULT_REPLAY_BUFFER_SIZE = 4 * 1024; // 4K
 
    protected AppCookieManager appCookieManager;
 


Mime
View raw message