Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-2847

Fix flaky test in StormTestBase.testJob

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • Tests

    Description

      testJob(org.apache.flink.storm.wordcount.WordCountLocalITCase)  Time elapsed: 12.845 sec  <<< FAILURE!
      java.lang.AssertionError: Different number of lines in expected and obtained result. expected:<801> but was:<0>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.apache.flink.test.util.TestBaseUtils.compareResultsByLinesInMemory(TestBaseUtils.java:305)
      	at org.apache.flink.test.util.TestBaseUtils.compareResultsByLinesInMemory(TestBaseUtils.java:291)
      	at org.apache.flink.storm.wordcount.WordCountLocalITCase.postSubmit(WordCountLocalITCase.java:38)
      
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.815 sec - in org.apache.flink.storm.wordcount.BoltTokenizerWordCountWithNamesITCase
      Running org.apache.flink.storm.wordcount.BoltTokenizerWordCountITCase
      Running org.apache.flink.storm.wordcount.BoltTokenizerWordCountPojoITCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.55 sec - in org.apache.flink.storm.wordcount.BoltTokenizerWordCountPojoITCase
      Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.801 sec - in org.apache.flink.storm.wordcount.BoltTokenizerWordCountITCase
      
      Results :
      
      Failed tests: 
        WordCountLocalITCase>StormTestBase.testJob:98->postSubmit:38->TestBaseUtils.compareResultsByLinesInMemory:291->TestBaseUtils.compareResultsByLinesInMemory:305 Different number of lines in expected and obtained result. expected:<801> but was:<0>
      
      Tests run: 11, Failures: 1, Errors: 0, Skipped: 0
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hsaputra Henry Saputra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: