From e598f2c663e932f273121243f08f7e765d8c4d58 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Fri, 17 Dec 2021 12:25:27 +0800 Subject: [PATCH] Revert "HBASE-26523 Upgrade hbase-thirdparty dependency to 4.0.0 (#3910)" Need a new 4.0.1 release This reverts commit 139f08587a56ece62f33eaa028f6534b6129300e. --- .../hbase/http/resource/JerseyResource.java | 16 +++++----- .../apache/hadoop/hbase/MockHttpApiRule.java | 2 +- .../hadoop/hbase/RESTApiClusterManager.java | 16 +++++----- hbase-rest/pom.xml | 8 ++--- .../hadoop/hbase/rest/ExistsResource.java | 17 +++++----- .../hadoop/hbase/rest/MultiRowResource.java | 15 +++++---- .../rest/NamespacesInstanceResource.java | 25 +++++++-------- .../hadoop/hbase/rest/NamespacesResource.java | 19 +++++------ .../hbase/rest/ProtobufStreamingOutput.java | 5 ++- .../apache/hadoop/hbase/rest/RESTServer.java | 2 +- .../hadoop/hbase/rest/RegionsResource.java | 15 ++++----- .../hadoop/hbase/rest/ResourceBase.java | 5 ++- .../hadoop/hbase/rest/RootResource.java | 27 ++++++++-------- .../apache/hadoop/hbase/rest/RowResource.java | 27 ++++++++-------- .../hbase/rest/ScannerInstanceResource.java | 27 ++++++++-------- .../hadoop/hbase/rest/ScannerResource.java | 31 ++++++++++-------- .../hadoop/hbase/rest/SchemaResource.java | 25 +++++++-------- .../rest/StorageClusterStatusResource.java | 15 ++++----- .../rest/StorageClusterVersionResource.java | 15 ++++----- .../hadoop/hbase/rest/TableResource.java | 17 +++++----- .../hadoop/hbase/rest/TableScanResource.java | 22 +++++++------ .../hadoop/hbase/rest/VersionResource.java | 21 ++++++------ .../hadoop/hbase/rest/model/ScannerModel.java | 17 ++++++---- .../rest/provider/JAXBContextResolver.java | 9 +++--- .../consumer/ProtobufMessageBodyConsumer.java | 19 +++++------ .../PlainTextMessageBodyProducer.java | 19 +++++------ .../producer/ProtobufMessageBodyProducer.java | 15 +++++---- .../hadoop/hbase/rest/RowResourceBase.java | 8 +++-- .../hbase/rest/TestMultiRowResource.java | 9 ++++-- .../rest/TestNamespacesInstanceResource.java | 5 ++- .../hbase/rest/TestSecureRESTServer.java | 8 +++-- .../hadoop/hbase/rest/TestTableScan.java | 5 ++- .../hbase/rest/TestVersionResource.java | 5 ++- .../hbase/rest/model/TestModelBase.java | 5 ++- .../hbase/coprocessor/MetaTableMetrics.java | 32 +++++++++++-------- .../hbase/io/hfile/LruCachedBlockQueue.java | 25 +++++---------- .../io/hfile/bucket/CachedEntryQueue.java | 7 ---- pom.xml | 28 ++++------------ 38 files changed, 287 insertions(+), 301 deletions(-) diff --git a/hbase-http/src/test/java/org/apache/hadoop/hbase/http/resource/JerseyResource.java b/hbase-http/src/test/java/org/apache/hadoop/hbase/http/resource/JerseyResource.java index ee900db6230..c3b731f9779 100644 --- a/hbase-http/src/test/java/org/apache/hadoop/hbase/http/resource/JerseyResource.java +++ b/hbase-http/src/test/java/org/apache/hadoop/hbase/http/resource/JerseyResource.java @@ -20,17 +20,17 @@ package org.apache.hadoop.hbase.http.resource; import java.io.IOException; import java.util.Map; import java.util.TreeMap; +import javax.ws.rs.DefaultValue; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.QueryParam; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.hbase.thirdparty.javax.ws.rs.DefaultValue; -import org.apache.hbase.thirdparty.javax.ws.rs.GET; -import org.apache.hbase.thirdparty.javax.ws.rs.Path; -import org.apache.hbase.thirdparty.javax.ws.rs.PathParam; -import org.apache.hbase.thirdparty.javax.ws.rs.Produces; -import org.apache.hbase.thirdparty.javax.ws.rs.QueryParam; -import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType; -import org.apache.hbase.thirdparty.javax.ws.rs.core.Response; import org.apache.hbase.thirdparty.org.eclipse.jetty.util.ajax.JSON; /** diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/MockHttpApiRule.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/MockHttpApiRule.java index 2ca951d8cf9..99e44ccf36d 100644 --- a/hbase-it/src/test/java/org/apache/hadoop/hbase/MockHttpApiRule.java +++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/MockHttpApiRule.java @@ -28,11 +28,11 @@ import java.util.function.BiConsumer; import java.util.regex.Pattern; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import javax.ws.rs.core.MediaType; import org.junit.rules.ExternalResource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType; import org.apache.hbase.thirdparty.org.eclipse.jetty.server.Request; import org.apache.hbase.thirdparty.org.eclipse.jetty.server.RequestLog; import org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server; diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/RESTApiClusterManager.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/RESTApiClusterManager.java index 70820893f48..4b72a9dbcf1 100644 --- a/hbase-it/src/test/java/org/apache/hadoop/hbase/RESTApiClusterManager.java +++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/RESTApiClusterManager.java @@ -32,6 +32,14 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.concurrent.Callable; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; +import javax.ws.rs.client.Entity; +import javax.ws.rs.client.Invocation; +import javax.ws.rs.client.WebTarget; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.UriBuilder; import javax.xml.ws.http.HTTPException; import org.apache.commons.lang3.StringUtils; import org.apache.hadoop.conf.Configuration; @@ -46,14 +54,6 @@ import org.slf4j.LoggerFactory; import org.apache.hbase.thirdparty.com.google.gson.JsonElement; import org.apache.hbase.thirdparty.com.google.gson.JsonObject; import org.apache.hbase.thirdparty.com.google.gson.JsonParser; -import org.apache.hbase.thirdparty.javax.ws.rs.client.Client; -import org.apache.hbase.thirdparty.javax.ws.rs.client.ClientBuilder; -import org.apache.hbase.thirdparty.javax.ws.rs.client.Entity; -import org.apache.hbase.thirdparty.javax.ws.rs.client.Invocation; -import org.apache.hbase.thirdparty.javax.ws.rs.client.WebTarget; -import org.apache.hbase.thirdparty.javax.ws.rs.core.MediaType; -import org.apache.hbase.thirdparty.javax.ws.rs.core.Response; -import org.apache.hbase.thirdparty.javax.ws.rs.core.UriBuilder; import org.apache.hbase.thirdparty.org.glassfish.jersey.client.authentication.HttpAuthenticationFeature; /** diff --git a/hbase-rest/pom.xml b/hbase-rest/pom.xml index a28058b90a9..de6f162bcd1 100644 --- a/hbase-rest/pom.xml +++ b/hbase-rest/pom.xml @@ -264,6 +264,10 @@ com.sun.activation javax.activation + + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider + com.fasterxml.jackson.core jackson-annotations @@ -276,10 +280,6 @@ com.fasterxml.jackson.core jackson-databind - - org.apache.hbase.thirdparty - hbase-shaded-jackson-jaxrs-json-provider - @@ -2383,6 +2367,11 @@ joni ${joni.version} + + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider + ${jackson.version} + com.fasterxml.jackson.core jackson-annotations @@ -2637,11 +2626,6 @@ hbase-shaded-jersey ${hbase-thirdparty.version} - - org.apache.hbase.thirdparty - hbase-shaded-jackson-jaxrs-json-provider - ${hbase-thirdparty.version} - com.sun.xml.ws jaxws-ri