You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by es...@apache.org on 2020/03/25 22:06:47 UTC

[hbase] branch branch-2.3 updated: HBASE-24041 [regression] Increase RESTServer buffer size back to 64k (#1339)

This is an automated email from the ASF dual-hosted git repository.

esteban pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new 11bc006  HBASE-24041 [regression] Increase RESTServer buffer size back to 64k (#1339)
11bc006 is described below

commit 11bc006ff3567228a3a3790ae7c660e09e3a0a78
Author: Esteban Gutierrez <es...@apache.org>
AuthorDate: Tue Mar 24 15:12:02 2020 -0500

    HBASE-24041 [regression] Increase RESTServer buffer size back to 64k (#1339)
    
    * HBASE-24041 [regression] Increase RESTServer buffer size back to 64k
    
    * HBASE-24041 [regression] Increase RESTServer buffer size back to 64k
---
 hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
index c3d16ee..3411ef2 100644
--- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
+++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
@@ -90,6 +90,7 @@ public class RESTServer implements Constants {
   static final String REST_CSRF_METHODS_TO_IGNORE_KEY = "hbase.rest.csrf.methods.to.ignore";
   static final String REST_CSRF_METHODS_TO_IGNORE_DEFAULT = "GET,OPTIONS,HEAD,TRACE";
   public static final String SKIP_LOGIN_KEY = "hbase.rest.skip.login";
+  static final int DEFAULT_HTTP_MAX_HEADER_SIZE = 64 * 1024; // 64k
 
   private static final String PATH_SPEC_ANY = "/*";
 
@@ -293,6 +294,9 @@ public class RESTServer implements Constants {
     HttpConfiguration httpConfig = new HttpConfiguration();
     httpConfig.setSecureScheme("https");
     httpConfig.setSecurePort(servicePort);
+    httpConfig.setHeaderCacheSize(DEFAULT_HTTP_MAX_HEADER_SIZE);
+    httpConfig.setRequestHeaderSize(DEFAULT_HTTP_MAX_HEADER_SIZE);
+    httpConfig.setResponseHeaderSize(DEFAULT_HTTP_MAX_HEADER_SIZE);
     httpConfig.setSendServerVersion(false);
     httpConfig.setSendDateHeader(false);