[ https://issues.apache.org/jira/browse/FLINK-6040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15923923#comment-15923923 ]
ASF GitHub Bot commented on FLINK-6040: --------------------------------------- GitHub user clarkyzl opened a pull request: https://github.com/apache/flink/pull/3530 [FLINK-6040] [table] DataStreamUserDefinedFunctionITCase occasionally fails Type: Bug Priority: Major Components: table, test Problem Definition: DataStreamUserDefinedFunctionITCase occasionally fails Design: Three test cases in `DataStreamUserDefinedFunctionITCase` forgot to call the method `StreamITCase.clear method`. This will cause the case occasionally fails. Because the result of one case may affect another sometimes. The patch the is simply adding the missing methods. Impact Analysis: Only the tests. No impacts on the core code. Test: Tested `DataStreamUserDefinedFunctionITCase` locally. You can merge this pull request into a Git repository by running: $ git pull https://github.com/clarkyzl/flink flink-6040 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/3530.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3530 ---- ---- > DataStreamUserDefinedFunctionITCase occasionally fails > ------------------------------------------------------ > > Key: FLINK-6040 > URL: https://issues.apache.org/jira/browse/FLINK-6040 > Project: Flink > Issue Type: Bug > Components: Tests > Affects Versions: 1.3.0 > Reporter: Zhuoluo Yang > Assignee: Zhuoluo Yang > Priority: Trivial > Labels: test > Fix For: 1.3.0 > > > 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. > {code} > 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) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)