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

RestClientTest sometimes fails with AssertionError

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • Runtime / Web Frontend

    Description

      Running the test on Linux I got:

      testConnectionTimeout(org.apache.flink.runtime.rest.RestClientTest)  Time elapsed: 1.918 sec  <<< FAILURE!
      java.lang.AssertionError:
      Expected: an instance of org.apache.flink.shaded.netty4.io.netty.channel.ConnectTimeoutException
           but: <org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedSocketException: Network is unreachable: /10.255.255.1:80> is a org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedSocketException
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.junit.Assert.assertThat(Assert.java:956)
        at org.junit.Assert.assertThat(Assert.java:923)
        at org.apache.flink.runtime.rest.RestClientTest.testConnectionTimeout(RestClientTest.java:69)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: