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

DataStreamUserDefinedFunctionITCase occasionally fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • Tests

    Description

      Three test cases in DataStreamUserDefinedFunctionITCase forgot to call the StreamITCase.clear method. This will cause it occasionally fails. Because the result of one case may affect another sometimes.

      java.lang.AssertionError: 
      Expected :MutableList(Anna#44,1, Anna#44,2, Anna#44,Anna#44, Jack#22,1, Jack#22,2, Jack#22,Jack#22, John#19,1, John#19,2, John#19,John#19, nosharp,1, nosharp,2, nosharp,nosharp)
      Actual   :MutableList(Anna#44,1, Anna#44,2, Anna#44,Anna#44, Jack#22,1, Jack#22,2, Jack#22,Jack#22, John#19,1, John#19,2, John#19,John#19, Miller,13.56, Smith,180.2, Williams,4.68, Williams,69.0, nosharp,1, nosharp,2, nosharp,nosharp)
      
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.failNotEquals(Assert.java:834)
        at org.junit.Assert.assertEquals(Assert.java:118)
        at org.junit.Assert.assertEquals(Assert.java:144)
        at org.apache.flink.table.runtime.datastream.DataStreamUserDefinedFunctionITCase.testTableFunctionWithVariableArguments(DataStreamUserDefinedFunctionITCase.scala:226)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
      

      Attachments

        Issue Links

          Activity

            People

              clarkyzl Zhuoluo Yang
              clarkyzl Zhuoluo Yang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: