Details
-
Bug
-
Status: Resolved
-
P1
-
Resolution: Cannot Reproduce
-
2.2.0
Description
In contribution-guide to setup Apache Beam, last step indicates to run mvn verify to make the setup is correct. Build fails due to assertion that is happening in org.apache.beam.runners.apex.examples.WordCountTest. Failure is due to race condition of not waiting enough for files to be generated. To prove this bug, if we insert Thread.sleep before the assertion, test always passes. This is preventing from completing contribution-guide successfully.
Error message:
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 60.315 s <<< FAILURE! - in org.apache.beam.runners.apex.examples.WordCountTest [ERROR] testWordCountExample(org.apache.beam.runners.apex.examples.WordCountTest) Time elapsed: 32.259 s <<< FAILURE! java.lang.AssertionError: result files exist at org.junit.Assert.fail(Assert.java:88)