You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "liujiayi771 (via GitHub)" <gi...@apache.org> on 2024/10/30 08:41:20 UTC

[PR] :TEZ-4584: TezUtilsInternal.readUserSpecifiedTezConfiguration throws com.google.protobuf.CodedInputStream exception [tez]

liujiayi771 opened a new pull request, #376:
URL: https://github.com/apache/tez/pull/376

   ```
   com.google.protobuf.InvalidProtocolBufferException: Protocol message was too large.  May be malicious.  Use CodedInputStream.setSizeLimit() to increase the size limit.
       at com.google.protobuf.InvalidProtocolBufferException.sizeLimitExceeded(InvalidProtocolBufferException.java:110)
       at com.google.protobuf.CodedInputStream.refillBuffer(CodedInputStream.java:755)
       at com.google.protobuf.CodedInputStream.isAtEnd(CodedInputStream.java:701)
       at com.google.protobuf.CodedInputStream.readTag(CodedInputStream.java:99)
       at org.apache.tez.dag.api.records.DAGProtos$ConfigurationProto.<init>(DAGProtos.java:19303)
       at org.apache.tez.dag.api.records.DAGProtos$ConfigurationProto.<init>(DAGProtos.java:19267)
       at org.apache.tez.dag.api.records.DAGProtos$ConfigurationProto$1.parsePartialFrom(DAGProtos.java:19369)
       at org.apache.tez.dag.api.records.DAGProtos$ConfigurationProto$1.parsePartialFrom(DAGProtos.java:19364)
       at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:200)
       at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:217)
       at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:223)
       at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
       at org.apache.tez.dag.api.records.DAGProtos$ConfigurationProto.parseFrom(DAGProtos.java:19561)
       at org.apache.tez.common.TezUtilsInternal.readUserSpecifiedTezConfiguration(TezUtilsInternal.java:77)
       at org.apache.tez.dag.app.DAGAppMaster.main(DAGAppMaster.java:2351) 
   ```
   It is same as https://issues.apache.org/jira/browse/TEZ-4142. Fix this issue by calling CodedInputStream.setSizeLimit.


-- 
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@tez.apache.org

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


Re: [PR] TEZ-4584: TezUtilsInternal.readUserSpecifiedTezConfiguration throws com.google.protobuf.CodedInputStream exception [tez]

Posted by "ayushtkn (via GitHub)" <gi...@apache.org>.
ayushtkn commented on PR #376:
URL: https://github.com/apache/tez/pull/376#issuecomment-2461449753

   cool, we can close this then, thanx for checking


-- 
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@tez.apache.org

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


Re: [PR] TEZ-4584: TezUtilsInternal.readUserSpecifiedTezConfiguration throws com.google.protobuf.CodedInputStream exception [tez]

Posted by "ayushtkn (via GitHub)" <gi...@apache.org>.
ayushtkn closed pull request #376: TEZ-4584: TezUtilsInternal.readUserSpecifiedTezConfiguration throws com.google.protobuf.CodedInputStream exception
URL: https://github.com/apache/tez/pull/376


-- 
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@tez.apache.org

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


Re: [PR] TEZ-4584: TezUtilsInternal.readUserSpecifiedTezConfiguration throws com.google.protobuf.CodedInputStream exception [tez]

Posted by "tez-yetus (via GitHub)" <gi...@apache.org>.
tez-yetus commented on PR #376:
URL: https://github.com/apache/tez/pull/376#issuecomment-2446322937

   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime | Comment |
   |:----:|----------:|--------:|:--------|
   | +0 :ok: |  reexec  |  23m 54s |  Docker mode activated.  |
   ||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  No case conflicting files found.  |
   | +1 :green_heart: |  @author  |   0m  0s |  The patch does not contain any @author tags.  |
   | -1 :x: |  test4tests  |   0m  0s |  The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.  |
   ||| _ master Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  16m 58s |  master passed  |
   | +1 :green_heart: |  compile  |   0m 29s |  master passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04  |
   | +1 :green_heart: |  compile  |   0m 29s |  master passed with JDK Private Build-1.8.0_422-8u422-b05-1~22.04-b05  |
   | +1 :green_heart: |  checkstyle  |   1m 25s |  master passed  |
   | +1 :green_heart: |  javadoc  |   0m 37s |  master passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04  |
   | +1 :green_heart: |  javadoc  |   0m 23s |  master passed with JDK Private Build-1.8.0_422-8u422-b05-1~22.04-b05  |
   | +0 :ok: |  spotbugs  |   1m 18s |  Used deprecated FindBugs config; considering switching to SpotBugs.  |
   | +1 :green_heart: |  findbugs  |   1m 15s |  master passed  |
   ||| _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   0m 15s |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 15s |  the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04  |
   | +1 :green_heart: |  javac  |   0m 15s |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 14s |  the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~22.04-b05  |
   | +1 :green_heart: |  javac  |   0m 14s |  the patch passed  |
   | +1 :green_heart: |  checkstyle  |   0m  9s |  the patch passed  |
   | +1 :green_heart: |  whitespace  |   0m  0s |  The patch has no whitespace issues.  |
   | +1 :green_heart: |  javadoc  |   0m  8s |  the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04  |
   | +1 :green_heart: |  javadoc  |   0m  8s |  the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~22.04-b05  |
   | +1 :green_heart: |  findbugs  |   0m 36s |  the patch passed  |
   ||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |   0m 35s |  tez-common in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   0m 17s |  The patch does not generate ASF License warnings.  |
   |  |   |  49m 11s |   |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-376/1/artifact/out/Dockerfile |
   | GITHUB PR | https://github.com/apache/tez/pull/376 |
   | JIRA Issue | TEZ-4584 |
   | Optional Tests | dupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile |
   | uname | Linux 8d7cb4329e85 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | personality/tez.sh |
   | git revision | master / 607b2bc22 |
   | Default Java | Private Build-1.8.0_422-8u422-b05-1~22.04-b05 |
   | Multi-JDK versions | /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_422-8u422-b05-1~22.04-b05 |
   |  Test Results | https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-376/1/testReport/ |
   | Max. process+thread count | 101 (vs. ulimit of 5500) |
   | modules | C: tez-common U: tez-common |
   | Console output | https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-376/1/console |
   | versions | git=2.34.1 maven=3.6.3 findbugs=3.0.1 |
   | Powered by | Apache Yetus 0.12.0 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


-- 
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@tez.apache.org

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


Re: [PR] TEZ-4584: TezUtilsInternal.readUserSpecifiedTezConfiguration throws com.google.protobuf.CodedInputStream exception [tez]

Posted by "liujiayi771 (via GitHub)" <gi...@apache.org>.
liujiayi771 commented on PR #376:
URL: https://github.com/apache/tez/pull/376#issuecomment-2459832810

   @ayushtkn I tried to add a test case. However, I found that this modification is no longer needed in master, including the modifications in TEZ-4142 are no longer needed as well.
   
   I encountered this issue in version 0.10.2, when the protobuf version was 2.5.0. In that version, the `CodedInputStream.DEFAULT_SIZE_LIMIT` was 64MB. 
   
   https://github.com/protocolbuffers/protobuf/blob/774d630bde574f5fcbb6dae6eaa0f91f7bc12967/java/src/main/java/com/google/protobuf/CodedInputStream.java#L561
   
   However, the protobuf in master branch has now been upgraded to 3.25.5, where the `DEFAULT_SIZE_LIMIT` is now set to `Integer.MAX_VALUE` by default, so this issue no longer exists.
   
   https://github.com/protocolbuffers/protobuf/blob/9d0ec0f92b5b5fdeeda11f9dcecc1872ff378014/java/core/src/main/java/com/google/protobuf/CodedInputStream.java#L42


-- 
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@tez.apache.org

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


Re: [PR] TEZ-4584: TezUtilsInternal.readUserSpecifiedTezConfiguration throws com.google.protobuf.CodedInputStream exception [tez]

Posted by "tez-yetus (via GitHub)" <gi...@apache.org>.
tez-yetus commented on PR #376:
URL: https://github.com/apache/tez/pull/376#issuecomment-2449083013

   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime | Comment |
   |:----:|----------:|--------:|:--------|
   | +0 :ok: |  reexec  |   0m 13s |  Docker mode activated.  |
   ||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  No case conflicting files found.  |
   | +1 :green_heart: |  @author  |   0m  0s |  The patch does not contain any @author tags.  |
   | -1 :x: |  test4tests  |   0m  0s |  The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.  |
   ||| _ master Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  19m 40s |  master passed  |
   | +1 :green_heart: |  compile  |   0m 29s |  master passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04  |
   | +1 :green_heart: |  compile  |   0m 28s |  master passed with JDK Private Build-1.8.0_422-8u422-b05-1~22.04-b05  |
   | +1 :green_heart: |  checkstyle  |   1m 27s |  master passed  |
   | +1 :green_heart: |  javadoc  |   0m 39s |  master passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04  |
   | +1 :green_heart: |  javadoc  |   0m 24s |  master passed with JDK Private Build-1.8.0_422-8u422-b05-1~22.04-b05  |
   | +0 :ok: |  spotbugs  |   1m 24s |  Used deprecated FindBugs config; considering switching to SpotBugs.  |
   | +1 :green_heart: |  findbugs  |   1m 22s |  master passed  |
   ||| _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   0m 15s |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 14s |  the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04  |
   | +1 :green_heart: |  javac  |   0m 14s |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 14s |  the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~22.04-b05  |
   | +1 :green_heart: |  javac  |   0m 14s |  the patch passed  |
   | +1 :green_heart: |  checkstyle  |   0m  9s |  the patch passed  |
   | +1 :green_heart: |  whitespace  |   0m  0s |  The patch has no whitespace issues.  |
   | +1 :green_heart: |  javadoc  |   0m  8s |  the patch passed with JDK Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04  |
   | +1 :green_heart: |  javadoc  |   0m  8s |  the patch passed with JDK Private Build-1.8.0_422-8u422-b05-1~22.04-b05  |
   | +1 :green_heart: |  findbugs  |   0m 37s |  the patch passed  |
   ||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |   0m 37s |  tez-common in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   0m 19s |  The patch does not generate ASF License warnings.  |
   |  |   |  28m 28s |   |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-376/2/artifact/out/Dockerfile |
   | GITHUB PR | https://github.com/apache/tez/pull/376 |
   | JIRA Issue | TEZ-4584 |
   | Optional Tests | dupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile |
   | uname | Linux d17062f9d326 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | personality/tez.sh |
   | git revision | master / 607b2bc22 |
   | Default Java | Private Build-1.8.0_422-8u422-b05-1~22.04-b05 |
   | Multi-JDK versions | /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.24+8-post-Ubuntu-1ubuntu322.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_422-8u422-b05-1~22.04-b05 |
   |  Test Results | https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-376/2/testReport/ |
   | Max. process+thread count | 101 (vs. ulimit of 5500) |
   | modules | C: tez-common U: tez-common |
   | Console output | https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-376/2/console |
   | versions | git=2.34.1 maven=3.6.3 findbugs=3.0.1 |
   | Powered by | Apache Yetus 0.12.0 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


-- 
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@tez.apache.org

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