Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-3319

Cannot build Apache Beam due to Apex Runner test failing

Details

    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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mayumi.liyanage Mayumi Liyanage
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: