[ 
https://issues.apache.org/jira/browse/BEAM-5035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16570954#comment-16570954
 ] 

Luke Cwik commented on BEAM-5035:
---------------------------------

I saw something like this before and it was caused by the jar being modified by 
a task while it was being consumed by another task.

This caused some internal corruption during reading if the process doing the 
reading didn't maintain an open file handle the entire time.

 

My specific failure was being caused by the main jar being overwritten by the 
shadow jar when we had the -Prelease enabled. You can validate that this is the 
same failure by using [inotifywatch|https://linux.die.net/man/1/inotifywatch] 
(assuming you can reproduce this failure locally).

> beam_PostCommit_Java_GradleBuild/1105 :beam-examples-java:compileTestJava 
> FAILED
> --------------------------------------------------------------------------------
>
>                 Key: BEAM-5035
>                 URL: https://issues.apache.org/jira/browse/BEAM-5035
>             Project: Beam
>          Issue Type: Improvement
>          Components: test-failures
>            Reporter: Mikhail Gryzykhin
>            Assignee: Ahmet Altay
>            Priority: Critical
>
> Compilation failed for
> [https://builds.apache.org/view/A-D/view/Beam/job/beam_PostCommit_Java_GradleBuild/1105/]
>  > Task :beam-examples-java:compileTestJava FAILED
>  
> /home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_GradleBuild/src/examples/java/src/test/java/org/apache/beam/examples/cookbook/BigQueryTornadoesIT.java:22:
>  error: cannot access BigqueryMatcher
>  import org.apache.beam.sdk.io.gcp.testing.BigqueryMatcher;
>  ^
>  bad class file: 
> /home/jenkins/jenkins-slave/workspace/beam_PostCommit_Java_GradleBuild/src/sdks/java/io/google-cloud-platform/build/libs/beam-sdks-java-io-google-cloud-platform-2.7.0-SNAPSHOT-tests.jar(/org/apache/beam/sdk/io/gcp/testing/BigqueryMatcher.class)
>  unable to access file: java.util.zip.ZipException: invalid stored block 
> lengths
>  Please remove or make sure it appears in the correct subdirectory of the 
> classpath.
>  1 error
>  
> https://github.com/apache/beam/blame/328129bf033bc6be16bc8e09af905f37b7516412/examples/java/src/test/java/org/apache/beam/examples/cookbook/BigQueryTornadoesIT.java
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to