You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "mgabelle (via GitHub)" <gi...@apache.org> on 2025/02/05 10:04:13 UTC

[PR] ORC-20 - Upgrade protoc and protobuf version [orc-format]

mgabelle opened a new pull request, #21:
URL: https://github.com/apache/orc-format/pull/21

   <!--
   Thanks for sending a pull request!  Here are some tips for you:
     1. File a JIRA issue first and use it as a prefix of your PR title, e.g., `ORC-001: Fix ABC`.
     2. Use your PR title to summarize what this PR proposes instead of describing the problem.
     3. Make PR title and description complete because these will be the permanent commit log.
     4. If possible, provide a concise and reproducible example to reproduce the issue for a faster review.
     5. If the PR is unfinished, use GitHub PR Draft feature.
   -->
   
   ### What changes were proposed in this pull request?
   PR to address issues related in https://github.com/apache/orc-format/issues/20
   Changes consist of upgrading to the most recent version of protobuf and protoc.
   <!--
   Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue. 
   If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
     1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
     2. If there is a discussion in the mailing list, please add the link.
   -->
   
   
   ### Why are the changes needed?
   Changes needed cause there are possible conflicts with recent protobuf versions from other libraries. 
   Also the current protobuf version is way out behind the current one and has some vulnerabilities.
   
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   
   
   ### How was this patch tested?
   No tests, just a build, I don't really know how to correctly test this one.
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-20 - Upgrade protoc and protobuf version [orc-format]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #21:
URL: https://github.com/apache/orc-format/pull/21#issuecomment-2791222146

   Since there exists an open PR for 3.25.5, I merged that to address CVE-2024-7254 .
   - https://github.com/apache/orc-format/pull/19


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-20 - Upgrade protoc and protobuf version [orc-format]

Posted by "ekpdt (via GitHub)" <gi...@apache.org>.
ekpdt commented on PR #21:
URL: https://github.com/apache/orc-format/pull/21#issuecomment-2715215567

   The solution is to upgrade both protoc and the protobuf runtime to 3.25.6, which is compatible with v26.x without being (as) breaking


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-20 - Upgrade protoc and protobuf version [orc-format]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #21:
URL: https://github.com/apache/orc-format/pull/21#discussion_r1950078280


##########
pom.xml:
##########
@@ -61,15 +61,15 @@
         <maven.compiler.release>17</maven.compiler.release>
         <maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>
         <maven.version>3.9.6</maven.version>
-        <protoc.version>3.17.3</protoc.version>
+        <protoc.version>4.28.2</protoc.version>

Review Comment:
   May I ask why you propose this old version instead of the latest, @mgabelle ?
   - https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java/4.29.3



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-20 - Upgrade protoc and protobuf version [orc-format]

Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on PR #21:
URL: https://github.com/apache/orc-format/pull/21#issuecomment-2636908299

   Is there any risk? This seems to be a huge version bump. @dongjoon-hyun


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-FORMAT-20 - Upgrade protoc and protobuf version [orc-format]

Posted by "mgabelle (via GitHub)" <gi...@apache.org>.
mgabelle closed pull request #21: ORC-FORMAT-20 - Upgrade protoc and protobuf version
URL: https://github.com/apache/orc-format/pull/21


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-20 - Upgrade protoc and protobuf version [orc-format]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #21:
URL: https://github.com/apache/orc-format/pull/21#issuecomment-2649560255

   > Is there any risk? This seems to be a huge version bump. @dongjoon-hyun
   
   Yes, there is a breaking change, @wgtmac .  For example, `v26` introduced a breaking change to Java API last year. And, this is more higher version than that.
   - https://protobuf.dev/news/2023-12-05/#breaking-compatibility-with-old-generated-code
   > v26.x will break compatibility with generated code from older major versions. Users should regenerate old generated code to be from the same version.
   > For example, GeneratedMessageV3, which was originally introduced for backwards compatibility with generated code from v2.x.x against v3.x.x runtime, will be renamed to GeneratedMessage. Runtimes will be updated to support [Editions](https://protobuf.dev/editions/overview/), which will not be compatible with old generated code.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org