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

FlinkKinesisConsumerTest.testSourceSynchronization unstable on Travis

    XMLWordPrintableJSON

Details

    Description

      The FlinkKinesisConsumerTest.testSourceSynchronization seems to be unstable on Travis. It fails with

      [ERROR] testSourceSynchronization(org.apache.flink.streaming.connectors.kinesis.FlinkKinesisConsumerTest)  Time elapsed: 10.031 s  <<< FAILURE!
      java.lang.AssertionError: 
      
      Expected: iterable containing ["1", <Watermark @ -4>]
           but: No item matched: <Watermark @ -4>
      	at org.apache.flink.streaming.connectors.kinesis.FlinkKinesisConsumerTest.testSourceSynchronization(FlinkKinesisConsumerTest.java:950)
      

      https://api.travis-ci.org/v3/job/541845510/log.txt

      While looking into the problem, I noticed that the test case takes 1 second to execute on my machine. I'm wondering whether this really needs to take this long. Moreover, the test code contains Thread.sleeps and uses Whiteboxing which we should avoid.

      Attachments

        Activity

          People

            thw Thomas Weise
            trohrmann Till Rohrmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m