Skip to content

Commit

Permalink
HBASE-27141 Upgrade hbase-thirdparty dependency to 4.1.1 (apache#4552)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Purtell <[email protected]>
Signed-off-by: Pankaj Kumar <[email protected]>
(cherry picked from commit 9bae50f)
Change-Id: I3c8d0def4d3d602e929bcf1efa568994d14913ee
  • Loading branch information
Apache9 authored and Stephen Wu committed Jun 28, 2022
1 parent 7acefc1 commit 6f7516a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ public class HttpServer implements FilterContainer {
private static final Logger LOG = LoggerFactory.getLogger(HttpServer.class);
private static final String EMPTY_STRING = "";

private static final int DEFAULT_MAX_HEADER_SIZE = 64 * 1024; // 64K
// Jetty's max header size is Character.MAX_VALUE - 1, See ArrayTernaryTrie for more details
// And in newer jetty version, they add a check when creating a server so we must follow this
// limitation otherwise the UTs will fail
private static final int DEFAULT_MAX_HEADER_SIZE = Character.MAX_VALUE - 1;

static final String FILTER_INITIALIZERS_PROPERTY = "hbase.http.filter.initializers";
static final String HTTP_MAX_THREADS = "hbase.http.max.threads";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class JSONBean {
private static final String COMMA = ",";
private static final String ASTERICK = "*";
private static final Logger LOG = LoggerFactory.getLogger(JSONBean.class);
private static final Gson GSON = GsonUtil.createGson().create();
private static final Gson GSON = GsonUtil.createGsonWithDisableHtmlEscaping().create();

/**
* Use dumping out mbeans as JSON.
Expand Down
2 changes: 1 addition & 1 deletion hbase-protocol-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!--Version of protobuf that hbase uses internally (we shade our pb)
Must match what is out in hbase-thirdparty include.
-->
<internal.protobuf.version>3.17.3</internal.protobuf.version>
<internal.protobuf.version>3.21.1</internal.protobuf.version>
</properties>
<dependencies>
<!--BE CAREFUL! Any dependency added here needs to be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ public final class Constants {
private Constants() {
}

public static final int DEFAULT_HTTP_MAX_HEADER_SIZE = 64 * 1024; // 64k
// Jetty's max header size is Character.MAX_VALUE - 1, See ArrayTernaryTrie for more details
// And in newer jetty version, they add a check when creating a server so we must follow this
// limitation otherwise the UTs will fail
public static final int DEFAULT_HTTP_MAX_HEADER_SIZE = Character.MAX_VALUE - 1;

public static final String SERVER_TYPE_CONF_KEY = "hbase.regionserver.thrift.server.type";

Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,9 @@
<httpclient.version>4.5.13</httpclient.version>
<httpcore.version>4.4.13</httpcore.version>
<metrics-core.version>3.2.6</metrics-core.version>
<jackson.version>2.10.5</jackson.version>
<jackson.databind.version>2.10.5.1</jackson.databind.version>
<jaxb-api.version>2.2.12</jaxb-api.version>
<jackson.version>2.13.3</jackson.version>
<jackson.databind.version>2.13.3</jackson.databind.version>
<jaxb-api.version>2.3.1</jaxb-api.version>
<servlet.api.version>3.1.0</servlet.api.version>
<wx.rs.api.version>2.1.1</wx.rs.api.version>
<glassfish.jsp.version>2.3.2</glassfish.jsp.version>
Expand Down Expand Up @@ -630,7 +630,7 @@
<wagon.ssh.version>2.12</wagon.ssh.version>
<xml.maven.version>1.0.1</xml.maven.version>
<spotless.version>2.22.2</spotless.version>
<hbase-thirdparty.version>4.1.0.7.2.16.0-SNAPSHOT</hbase-thirdparty.version>
<hbase-thirdparty.version>4.1.1</hbase-thirdparty.version>
<maven-site.version>3.12.0</maven-site.version>
<!-- Intraproject jar naming properties -->
<!-- TODO this is pretty ugly, but works for the moment.
Expand Down

0 comments on commit 6f7516a

Please sign in to comment.