This is an automated email from the ASF dual-hosted git repository.

srowen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 516d7b3d483 [SPARK-42798][BUILD] Upgrade protobuf-java to 3.22.3
516d7b3d483 is described below

commit 516d7b3d483687018fc457ab2fec82c05b169057
Author: YangJie <yangji...@baidu.com>
AuthorDate: Tue Apr 25 08:52:54 2023 -0500

    [SPARK-42798][BUILD] Upgrade protobuf-java to 3.22.3
    
    ### What changes were proposed in this pull request?
    This pr aims upgrade protobuf-java from 3.22.0 to 3.22.3.
    
    ### Why are the changes needed?
    The new version fixed the issue of `NoSuchMethodError` thrown when using 
Java 8 to run proto compiled with Java 9+ (even if --target 1.8):
    
    - https://github.com/protocolbuffers/protobuf/issues/11393 / 
https://github.com/protocolbuffers/protobuf/pull/12035
    
    The full release notes as follows:
    
    - https://github.com/protocolbuffers/protobuf/releases/tag/v22.1
    - https://github.com/protocolbuffers/protobuf/releases/tag/v22.2
    - https://github.com/protocolbuffers/protobuf/releases/tag/v22.3
    - https://github.com/protocolbuffers/protobuf/compare/v3.22.0...v3.22.3
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    Pass GitHub Actions
    
    Closes #40430 from LuciferYang/SPARK-42798.
    
    Lead-authored-by: YangJie <yangji...@baidu.com>
    Co-authored-by: yangjie01 <yangji...@baidu.com>
    Signed-off-by: Sean Owen <sro...@gmail.com>
---
 pom.xml                  | 2 +-
 project/SparkBuild.scala | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index a3b7f57ace9..2cb6ff86bb5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -124,7 +124,7 @@
     
<protobuf.hadoopDependency.version>2.5.0</protobuf.hadoopDependency.version>
     <!-- Actual Protobuf version in Spark modules like Spark Connect, protobuf 
connector, etc. -->
     <!-- SPARK-41247: When updating `protobuf.version`, also need to update 
`protoVersion` in `SparkBuild.scala` -->
-    <protobuf.version>3.22.0</protobuf.version>
+    <protobuf.version>3.22.3</protobuf.version>
     <protoc-jar-maven-plugin.version>3.11.4</protoc-jar-maven-plugin.version>
     <yarn.version>${hadoop.version}</yarn.version>
     <zookeeper.version>3.6.3</zookeeper.version>
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index d8a6972bae1..25f5ea4fa85 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -88,7 +88,7 @@ object BuildCommons {
 
   // Google Protobuf version used for generating the protobuf.
   // SPARK-41247: needs to be consistent with `protobuf.version` in `pom.xml`.
-  val protoVersion = "3.22.0"
+  val protoVersion = "3.22.3"
   // GRPC version used for Spark Connect.
   val gprcVersion = "1.47.0"
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to