HBASE-20221 Bump protobuf to 3.5.1

Required fixing the FIXED_XX_SIZE constants as they were renamed

Signed-off-by: Umesh Agashe <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/commit/c685d9a9
Tree: http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/tree/c685d9a9
Diff: http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/diff/c685d9a9

Branch: refs/heads/master
Commit: c685d9a9cbb6ff6612c56b6be2bd87418c73b384
Parents: 56bd56c
Author: Josh Elser <[email protected]>
Authored: Mon Mar 19 11:54:58 2018 -0400
Committer: Josh Elser <[email protected]>
Committed: Mon Mar 19 16:15:19 2018 -0400

----------------------------------------------------------------------
 hbase-shaded-protobuf/pom.xml                           |  2 +-
 .../src/main/patches/HBASE-15789_V2.patch               | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/blob/c685d9a9/hbase-shaded-protobuf/pom.xml
----------------------------------------------------------------------
diff --git a/hbase-shaded-protobuf/pom.xml b/hbase-shaded-protobuf/pom.xml
index 9f5ff77..5e2721b 100644
--- a/hbase-shaded-protobuf/pom.xml
+++ b/hbase-shaded-protobuf/pom.xml
@@ -32,7 +32,7 @@
     Pulls down protobuf, patches it, compiles, and then relocates/shades.
   </description>
   <properties>
-    <protobuf.version>3.3.1</protobuf.version>
+    <protobuf.version>3.5.1</protobuf.version>
   </properties>
   <build>
     <plugins>

http://git-wip-us.apache.org/repos/asf/hbase-thirdparty/blob/c685d9a9/hbase-shaded-protobuf/src/main/patches/HBASE-15789_V2.patch
----------------------------------------------------------------------
diff --git a/hbase-shaded-protobuf/src/main/patches/HBASE-15789_V2.patch 
b/hbase-shaded-protobuf/src/main/patches/HBASE-15789_V2.patch
index e91559c..cef5cfc 100644
--- a/hbase-shaded-protobuf/src/main/patches/HBASE-15789_V2.patch
+++ b/hbase-shaded-protobuf/src/main/patches/HBASE-15789_V2.patch
@@ -457,7 +457,7 @@ index 12d70ce..e4c8e05 100644
 +          skipRawVarint();
 +          return true;
 +        case WireFormat.WIRETYPE_FIXED64:
-+          skipRawBytes(FIXED_64_SIZE);
++          skipRawBytes(FIXED64_SIZE);
 +          return true;
 +        case WireFormat.WIRETYPE_LENGTH_DELIMITED:
 +          skipRawBytes(readRawVarint32());
@@ -470,7 +470,7 @@ index 12d70ce..e4c8e05 100644
 +        case WireFormat.WIRETYPE_END_GROUP:
 +          return false;
 +        case WireFormat.WIRETYPE_FIXED32:
-+          skipRawBytes(FIXED_32_SIZE);
++          skipRawBytes(FIXED32_SIZE);
 +          return true;
 +        default:
 +          throw InvalidProtocolBufferException.invalidWireType();
@@ -869,11 +869,11 @@ index 12d70ce..e4c8e05 100644
 +    public int readRawLittleEndian32() throws IOException {
 +      int tempPos = pos;
 +
-+      if (limit - tempPos < FIXED_32_SIZE) {
++      if (limit - tempPos < FIXED32_SIZE) {
 +        throw InvalidProtocolBufferException.truncatedMessage();
 +      }
 +
-+      pos = tempPos + FIXED_32_SIZE;
++      pos = tempPos + FIXED32_SIZE;
 +      return (((buffer.read(tempPos) & 0xff))
 +          | ((buffer.read(tempPos + 1) & 0xff) << 8)
 +          | ((buffer.read(tempPos + 2) & 0xff) << 16)
@@ -884,11 +884,11 @@ index 12d70ce..e4c8e05 100644
 +    public long readRawLittleEndian64() throws IOException {
 +      int tempPos = pos;
 +
-+      if (limit - tempPos < FIXED_64_SIZE) {
++      if (limit - tempPos < FIXED64_SIZE) {
 +        throw InvalidProtocolBufferException.truncatedMessage();
 +      }
 +
-+      pos = tempPos + FIXED_64_SIZE;
++      pos = tempPos + FIXED64_SIZE;
 +      return (((buffer.read(tempPos) & 0xffL))
 +          | ((buffer.read(tempPos + 1) & 0xffL) << 8)
 +          | ((buffer.read(tempPos + 2) & 0xffL) << 16)

Reply via email to