[
https://issues.apache.org/jira/browse/IGNITE-23623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aleksandr Chesnokov updated IGNITE-23623:
-----------------------------------------
Description:
The test is flaky if we run GridCacheAtomicPartitionedMetricsSelfTest. It looks
like testNonTxEvictions is the reason of the problem because if we add small
delay after testNonTxEvictions, everithing will be fine. Log of failed
testMissHitPercentage
{noformat}
======= Failed test run #1 ==========
Wrong cache metrics [i=0, grid=0] expected:<1> but was:<8>
------- Stdout: -------
java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1> but
was:<8>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at
org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
at
org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
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.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
at java.base/java.lang.Thread.run(Thread.java:829)
======= Failed test run #2 ==========
java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1> but
was:<8>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at
org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
at
org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
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.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
at java.base/java.lang.Thread.run(Thread.java:829)
------- Stdout: -------
[14:02:18] >>> Starting test:
GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage <<<
[14:02:18] >>> Heap: 581 MB used / 2048 MB commited / 4096 MB max <<<
[14:02:18] >>> Non-Heap: 140 MB used / 152 MB commited / 0 MB max <<<
[14:02:18] >>> Stopping test:
GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage in 5 ms <<<
[14:02:18] >>> Heap: 582 MB used / 2048 MB commited / 4096 MB max <<<
[14:02:18] >>> Non-Heap: 140 MB used / 152 MB commited / 0 MB max <<<
------- Stderr: -------
[2024-11-06T14:02:18,386][ERROR][main][] Test failed
[test=GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage,
duration=2]
java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1> but
was:<8>
at org.junit.Assert.fail(Assert.java:88) ~[junit-4.12.jar:4.12]
at org.junit.Assert.failNotEquals(Assert.java:834) ~[junit-4.12.jar:4.12]
at org.junit.Assert.assertEquals(Assert.java:645) ~[junit-4.12.jar:4.12]
at
org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
~[test-classes/:?]
at
org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
~[test-classes/:?]
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)
~[junit-4.12.jar:4.12]
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
~[junit-4.12.jar:4.12]
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
~[junit-4.12.jar:4.12]
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
~[junit-4.12.jar:4.12]
at
org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
~[test-classes/:?]
at java.base/java.lang.Thread.run(Thread.java:829) ~[?:?]
{noformat}
was:
The test is flaky if we run GridCacheAtomicPartitionedMetricsSelfTest. It looks
like testNonTxEvictions is the reason of the problem because if we add small
delay after testNonTxEvictions everithing will be fine. Log of failed
testMissHitPercentage
{noformat}
======= Failed test run #1 ==========
Wrong cache metrics [i=0, grid=0] expected:<1> but was:<8>
------- Stdout: -------
java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1> but
was:<8>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at
org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
at
org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
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.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
at java.base/java.lang.Thread.run(Thread.java:829)
======= Failed test run #2 ==========
java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1> but
was:<8>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at
org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
at
org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
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.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
at java.base/java.lang.Thread.run(Thread.java:829)
------- Stdout: -------
[14:02:18] >>> Starting test:
GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage <<<
[14:02:18] >>> Heap: 581 MB used / 2048 MB commited / 4096 MB max <<<
[14:02:18] >>> Non-Heap: 140 MB used / 152 MB commited / 0 MB max <<<
[14:02:18] >>> Stopping test:
GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage in 5 ms <<<
[14:02:18] >>> Heap: 582 MB used / 2048 MB commited / 4096 MB max <<<
[14:02:18] >>> Non-Heap: 140 MB used / 152 MB commited / 0 MB max <<<
------- Stderr: -------
[2024-11-06T14:02:18,386][ERROR][main][] Test failed
[test=GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage,
duration=2]
java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1> but
was:<8>
at org.junit.Assert.fail(Assert.java:88) ~[junit-4.12.jar:4.12]
at org.junit.Assert.failNotEquals(Assert.java:834) ~[junit-4.12.jar:4.12]
at org.junit.Assert.assertEquals(Assert.java:645) ~[junit-4.12.jar:4.12]
at
org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
~[test-classes/:?]
at
org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
~[test-classes/:?]
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)
~[junit-4.12.jar:4.12]
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
~[junit-4.12.jar:4.12]
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
~[junit-4.12.jar:4.12]
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
~[junit-4.12.jar:4.12]
at
org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
~[test-classes/:?]
at java.base/java.lang.Thread.run(Thread.java:829) ~[?:?]
{noformat}
> Flaky testMissHitPercentage
> ---------------------------
>
> Key: IGNITE-23623
> URL: https://issues.apache.org/jira/browse/IGNITE-23623
> Project: Ignite
> Issue Type: Bug
> Components: cache
> Reporter: Aleksandr Chesnokov
> Priority: Minor
>
> The test is flaky if we run GridCacheAtomicPartitionedMetricsSelfTest. It
> looks like testNonTxEvictions is the reason of the problem because if we add
> small delay after testNonTxEvictions, everithing will be fine. Log of failed
> testMissHitPercentage
> {noformat}
> ======= Failed test run #1 ==========
> Wrong cache metrics [i=0, grid=0] expected:<1> but was:<8>
> ------- Stdout: -------
> java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1>
> but was:<8>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:834)
> at org.junit.Assert.assertEquals(Assert.java:645)
> at
> org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
> at
> org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
> 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.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
> at java.base/java.lang.Thread.run(Thread.java:829)
> ======= Failed test run #2 ==========
> java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1>
> but was:<8>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:834)
> at org.junit.Assert.assertEquals(Assert.java:645)
> at
> org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
> at
> org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
> 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.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
> at java.base/java.lang.Thread.run(Thread.java:829)
> ------- Stdout: -------
> [14:02:18] >>> Starting test:
> GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage <<<
> [14:02:18] >>> Heap: 581 MB used / 2048 MB commited / 4096 MB max <<<
> [14:02:18] >>> Non-Heap: 140 MB used / 152 MB commited / 0 MB max <<<
> [14:02:18] >>> Stopping test:
> GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage in 5 ms <<<
> [14:02:18] >>> Heap: 582 MB used / 2048 MB commited / 4096 MB max <<<
> [14:02:18] >>> Non-Heap: 140 MB used / 152 MB commited / 0 MB max <<<
> ------- Stderr: -------
> [2024-11-06T14:02:18,386][ERROR][main][] Test failed
> [test=GridCacheAtomicReplicatedMetricsSelfTest#testMissHitPercentage,
> duration=2]
> java.lang.AssertionError: Wrong cache metrics [i=0, grid=0] expected:<1>
> but was:<8>
> at org.junit.Assert.fail(Assert.java:88) ~[junit-4.12.jar:4.12]
> at org.junit.Assert.failNotEquals(Assert.java:834) ~[junit-4.12.jar:4.12]
> at org.junit.Assert.assertEquals(Assert.java:645) ~[junit-4.12.jar:4.12]
> at
> org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:115)
> ~[test-classes/:?]
> at
> org.apache.ignite.internal.processors.cache.GridCacheAbstractMetricsSelfTest.testMissHitPercentage(GridCacheAbstractMetricsSelfTest.java:729)
> ~[test-classes/:?]
> 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)
> ~[junit-4.12.jar:4.12]
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> ~[junit-4.12.jar:4.12]
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> ~[junit-4.12.jar:4.12]
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> ~[junit-4.12.jar:4.12]
> at
> org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2499)
> ~[test-classes/:?]
> at java.base/java.lang.Thread.run(Thread.java:829) ~[?:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)