From f9fb9645ba86f3acd34f9bb3c4f230e5217e1e1c Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Sun, 21 Apr 2024 19:37:21 +0800 Subject: [PATCH] HBASE-28511 Update hbase-thirdparty to 4.1.7 (#5818) (#5840) Signed-off-by: Bryan Beaudreault (cherry picked from commit 3539581268f2063184044e96518267a9b19b642e) --- .../org/apache/hadoop/hbase/security/EncryptionUtil.java | 4 ++-- .../apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java | 2 +- .../hbase/mapreduce/TableSnapshotInputFormatImpl.java | 2 +- hbase-protocol-shaded/pom.xml | 2 +- .../apache/hadoop/hbase/io/hfile/FixedFileTrailer.java | 2 +- pom.xml | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/EncryptionUtil.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/EncryptionUtil.java index 6c755f9a94cd..04fc5201cc10 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/security/EncryptionUtil.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/security/EncryptionUtil.java @@ -120,7 +120,7 @@ public static byte[] wrapKey(Configuration conf, String subject, Key key) throws public static Key unwrapKey(Configuration conf, String subject, byte[] value) throws IOException, KeyException { EncryptionProtos.WrappedKey wrappedKey = - EncryptionProtos.WrappedKey.PARSER.parseDelimitedFrom(new ByteArrayInputStream(value)); + EncryptionProtos.WrappedKey.parser().parseDelimitedFrom(new ByteArrayInputStream(value)); String algorithm = conf.get(HConstants.CRYPTO_KEY_ALGORITHM_CONF_KEY, HConstants.CIPHER_AES); Cipher cipher = Encryption.getCipher(conf, algorithm); if (cipher == null) { @@ -170,7 +170,7 @@ private static Key getUnwrapKey(Configuration conf, String subject, public static Key unwrapWALKey(Configuration conf, String subject, byte[] value) throws IOException, KeyException { EncryptionProtos.WrappedKey wrappedKey = - EncryptionProtos.WrappedKey.PARSER.parseDelimitedFrom(new ByteArrayInputStream(value)); + EncryptionProtos.WrappedKey.parser().parseDelimitedFrom(new ByteArrayInputStream(value)); String algorithm = conf.get(HConstants.CRYPTO_WAL_ALGORITHM_CONF_KEY, HConstants.CIPHER_AES); Cipher cipher = Encryption.getCipher(conf, algorithm); if (cipher == null) { diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java index b17a18e43469..7c33e123231e 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java @@ -3140,7 +3140,7 @@ public static ServerName parseServerNameFrom(final byte[] data) throws Deseriali int prefixLen = ProtobufMagic.lengthOfPBMagic(); try { ZooKeeperProtos.Master rss = - ZooKeeperProtos.Master.PARSER.parseFrom(data, prefixLen, data.length - prefixLen); + ZooKeeperProtos.Master.parser().parseFrom(data, prefixLen, data.length - prefixLen); org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName sn = rss.getMaster(); return ServerName.valueOf(sn.getHostName(), sn.getPort(), sn.getStartCode()); diff --git a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormatImpl.java b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormatImpl.java index 43cb69bd8c03..f8fa1f6294c5 100644 --- a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormatImpl.java +++ b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableSnapshotInputFormatImpl.java @@ -227,7 +227,7 @@ public void readFields(DataInput in) throws IOException { int len = in.readInt(); byte[] buf = new byte[len]; in.readFully(buf); - TableSnapshotRegionSplit split = TableSnapshotRegionSplit.PARSER.parseFrom(buf); + TableSnapshotRegionSplit split = TableSnapshotRegionSplit.parser().parseFrom(buf); this.htd = ProtobufUtil.toTableDescriptor(split.getTable()); this.regionInfo = HRegionInfo.convert(split.getRegion()); List locationsList = split.getLocationsList(); diff --git a/hbase-protocol-shaded/pom.xml b/hbase-protocol-shaded/pom.xml index a1cb280df76a..f7ee8668bf55 100644 --- a/hbase-protocol-shaded/pom.xml +++ b/hbase-protocol-shaded/pom.xml @@ -34,7 +34,7 @@ - 3.25.2 + 4.26.1 3.10.6.Final - 4.1.100.Final + 4.1.108.Final 0.13.0 - 2.16.1 - 2.16.1 + 2.17.0 + 2.17.0 2.3.1 3.1.0 2.1.1 @@ -666,7 +666,7 @@ databind] must be kept in sync with the version of jackson-jaxrs-json-provider shipped in hbase-thirdparty. --> - 4.1.6 + 4.1.7 0.8.8