From e53712ae993248594245363fc3e8e36022534d9a Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Fri, 31 Dec 2021 12:10:08 +0800 Subject: [PATCH] HBASE-26523 Upgrade hbase-thirdparty dependency to 4.0.1 (#3988) Signed-off-by: GeorryHuang --- .../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 | 33 +++++++++---------- .../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 | 9 +++-- .../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 | 33 +++++++++---------- .../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 | 12 +++---- .../rest/provider/JAXBContextResolver.java | 9 +++-- .../consumer/ProtobufMessageBodyConsumer.java | 19 +++++------ .../PlainTextMessageBodyProducer.java | 17 +++++----- .../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, 305 insertions(+), 296 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 c3b731f9779e..ee900db62301 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 @@ 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 99e44ccf36d2..2ca951d8cf94 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.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 4b72a9dbcf1e..70820893f481 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,14 +32,6 @@ 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; @@ -54,6 +46,14 @@ 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 dbae324aa2cf..cacdbefbc8a8 100644 --- a/hbase-rest/pom.xml +++ b/hbase-rest/pom.xml @@ -278,10 +278,6 @@ com.sun.activation javax.activation - - com.fasterxml.jackson.jaxrs - jackson-jaxrs-json-provider - com.fasterxml.jackson.core jackson-annotations @@ -294,6 +290,10 @@ com.fasterxml.jackson.core jackson-databind + + org.apache.hbase.thirdparty + hbase-shaded-jackson-jaxrs-json-provider + @@ -2115,11 +2131,6 @@ joni ${joni.version} - - com.fasterxml.jackson.jaxrs - jackson-jaxrs-json-provider - ${jackson.version} - com.fasterxml.jackson.core jackson-annotations @@ -2379,6 +2390,11 @@ 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