[ 
https://issues.apache.org/jira/browse/FLINK-21139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Till Rohrmann updated FLINK-21139:
----------------------------------
    Description: 
The test {{ThresholdMeterTest.testMarkMultipleEvents}} seems to be unstable.

The version of Flink is

??$ git log -1??
??commit 6e77cfdff8a358adab4ab770a503197d95a64440 (HEAD -> master, 
origin/master, origin/HEAD)??
??Author: Roman Khachatryan <[email protected]>??
??Date: Fri Jan 22 14:39:48 2021 +0100??

The test fails with the following exception:

{code}
Expected: a numeric value within <1.0E-6> of <40.0>
     but: <0.0> differed by <39.999999>
        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.metrics.ThresholdMeterTest.testMarkMultipleEvents(ThresholdMeterTest.java:58)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:27)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
        at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
        at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:119)
        at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:87)
        at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
        at 
org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
        at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
        at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
        at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
{code}

  was:
The version of Flink is

 

??$ git log -1??
??commit 6e77cfdff8a358adab4ab770a503197d95a64440 (HEAD -> master, 
origin/master, origin/HEAD)??
??Author: Roman Khachatryan <[email protected]>??
??Date: Fri Jan 22 14:39:48 2021 +0100??

.

 

[Here 
is|https://gist.github.com/advancedwebdeveloper/cd81f3a99281cbd19820ecd1ce871962]
 is the full log.

 
|[INFO] -------------------------------------------------------|

|[INFO] T E S T S|

|[INFO] -------------------------------------------------------|

|ERROR StatusLogger No Log4j 2 configuration file found. Using default 
configuration (logging only errors to the console), or user programmatically 
provided configurations. Set system property 'log4j2.debug' to show Log4j 2 
internal initialization logging. See 
https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions 
on how to configure Log4j 2|

|ERROR StatusLogger No Log4j 2 configuration file found. Using default 
configuration (logging only errors to the console), or user programmatically 
provided configurations. Set system property 'log4j2.debug' to show Log4j 2 
internal initialization logging. See 
https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions 
on how to configure Log4j 2|

|[INFO] Running org.apache.flink.metrics.MeterViewTest|

|[INFO] Running org.apache.flink.metrics.ThresholdMeterTest|

|[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.237 s 
- in org.apache.flink.metrics.MeterViewTest|

|22:18:17.830 [main] ERROR org.apache.flink.metrics.ThresholdMeterTest -|

|--------------------------------------------------------------------------------|

|Test testMarkMultipleEvents(org.apache.flink.metrics.ThresholdMeterTest) 
failed with:|

|java.lang.AssertionError:|

|Expected: a numeric value within <1.0E-6> of <40.0>|

|but: <0.0> differed by <39.999999>|

|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.metrics.ThresholdMeterTest.testMarkMultipleEvents(ThresholdMeterTest.java:58)|

|at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)|

|at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)|

|at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|

|at java.base/java.lang.reflect.Method.invoke(Method.java:566)|

|at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)|

|at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)|

|at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)|

|at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)|

|at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)|

|at org.junit.rules.RunRules.evaluate(RunRules.java:20)|

|at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)|

|at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)|

|at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)|

|at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)|

|at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)|

|at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)|

|at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)|

|at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)|

|at org.junit.runners.ParentRunner.run(ParentRunner.java:363)|

|at org.junit.runners.Suite.runChild(Suite.java:128)|

|at org.junit.runners.Suite.runChild(Suite.java:27)|

|at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)|

|at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)|

|at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)|

|at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)|

|at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)|

|at org.junit.runners.ParentRunner.run(ParentRunner.java:363)|

|at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:119)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:87)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)|

|at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)|

|at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)|

|at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)|

|at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)|

| |

|================================================================================|

|[ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.889 
s <<< FAILURE! - in org.apache.flink.metrics.ThresholdMeterTest|

|[ERROR] testMarkMultipleEvents(org.apache.flink.metrics.ThresholdMeterTest) 
Time elapsed: 1.726 s <<< FAILURE!|

|java.lang.AssertionError:|

| |

|Expected: a numeric value within <1.0E-6> of <40.0>|

|but: <0.0> differed by <39.999999>|

|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.metrics.ThresholdMeterTest.testMarkMultipleEvents(ThresholdMeterTest.java:58)|

|at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)|

|at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)|

|at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)|

|at java.base/java.lang.reflect.Method.invoke(Method.java:566)|

|at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)|

|at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)|

|at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)|

|at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)|

|at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)|

|at org.junit.rules.RunRules.evaluate(RunRules.java:20)|

|at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)|

|at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)|

|at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)|

|at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)|

|at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)|

|at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)|

|at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)|

|at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)|

|at org.junit.runners.ParentRunner.run(ParentRunner.java:363)|

|at org.junit.runners.Suite.runChild(Suite.java:128)|

|at org.junit.runners.Suite.runChild(Suite.java:27)|

|at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)|

|at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)|

|at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)|

|at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)|

|at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)|

|at org.junit.runners.ParentRunner.run(ParentRunner.java:363)|

|at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:119)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:87)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)|

|at 
org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)|

|at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)|

|at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)|

|at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)|

at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)


> java.lang.AssertionError:   Expected: a numeric value within <1.0E-6> of 
> <40.0>      but: <0.0> differed by <39.999999>
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-21139
>                 URL: https://issues.apache.org/jira/browse/FLINK-21139
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Core, Benchmarks, Build System, Tests
>         Environment: $ java -version && javac -version
> openjdk version "11.0.8" 2020-07-14
> OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10-202007292333)
> Eclipse OpenJ9 VM AdoptOpenJDK (build master-dc7cbe4bd, JRE 11 Linux 
> riscv-64-Bit Compressed References 20200729_78 (JIT disabled, AOT disabled)
> OpenJ9 - dc7cbe4bd
> OMR - 1c0299f20
> JCL - 94b9d6d2c6 based on jdk-11.0.8+10)
> javac 11.0.8
> $ uname -a
> Linux test-gdams-debian10-riscv64-1.adoptopenjdk.net 
> 5.0.0-rc1-56210-g0a657e0d72f0 #1 SMP Fri May 15 18:05:26 EDT 2020 riscv64 
> GNU/Linux
> $ cat /proc/cpuinfo
> processor : 0
> hart : 1
> isa : rv64imafdc
> mmu : sv39
> uarch : sifive,rocket0
>            Reporter: Ivan Serdyuk
>            Priority: Critical
>
> The test {{ThresholdMeterTest.testMarkMultipleEvents}} seems to be unstable.
> The version of Flink is
> ??$ git log -1??
> ??commit 6e77cfdff8a358adab4ab770a503197d95a64440 (HEAD -> master, 
> origin/master, origin/HEAD)??
> ??Author: Roman Khachatryan <[email protected]>??
> ??Date: Fri Jan 22 14:39:48 2021 +0100??
> The test fails with the following exception:
> {code}
> Expected: a numeric value within <1.0E-6> of <40.0>
>      but: <0.0> differed by <39.999999>
>       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.metrics.ThresholdMeterTest.testMarkMultipleEvents(ThresholdMeterTest.java:58)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>       at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>       at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
>       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>       at org.junit.runners.Suite.runChild(Suite.java:128)
>       at org.junit.runners.Suite.runChild(Suite.java:27)
>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>       at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
>       at 
> org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
>       at 
> org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeLazy(JUnitCoreWrapper.java:119)
>       at 
> org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:87)
>       at 
> org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
>       at 
> org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
>       at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
>       at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
>       at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
>       at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to