[
https://issues.apache.org/jira/browse/IGNITE-28120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vyacheslav Koptilin updated IGNITE-28120:
-----------------------------------------
Description:
Test fails with the following error:
{noformat}
rg.awaitility.core.ConditionTimeoutException: Assertion condition defined as a
lambda expression in
org.apache.ignite.internal.rebalance.ItRebalanceMetricsTest that uses
java.util.List, java.util.Listjava.lang.String, java.lang.Stringjava.util.List,
java.util.Listjava.util.List
Expected: is <true>
but: was <false> within 30 seconds.
Expected :is <true>
Actual :<false> within 30 seconds.
<Click to see difference>
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at
org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
at
org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
at
org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1160)
at
org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:790)
at
org.apache.ignite.internal.rebalance.ItRebalanceMetricsTest.assertRebalanceMetrics(ItRebalanceMetricsTest.java:246)
at
org.apache.ignite.internal.rebalance.ItRebalanceMetricsTest.testRebalanceMetrics(ItRebalanceMetricsTest.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
Caused by: java.lang.AssertionError:
Expected: is <true>
but: was <false>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
at
org.apache.ignite.internal.rebalance.ItRebalanceMetricsTest.lambda$assertRebalanceMetrics$5(ItRebalanceMetricsTest.java:252)
at
org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)
at
org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
at
org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
{noformat}
It seems weird to me that the test detects that `penfing` assignments are the
same as `stable` ones.
{noformat}
>>>>> partitions to rebalance [node= irmt_trm_3344, expectedLocal=0,
>>>>> expectedTotal=5]
^-- metrics [name=LocalUnrebalancedPartitionsCount, value=0]
^-- metrics [name=TotalUnrebalancedPartitionsCount, value=0]
^-- [partId=0, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=1, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=2, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=3, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=4, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=5, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=6, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
>>>>> partitions to rebalance [node= irmt_trm_3345, expectedLocal=5,
>>>>> expectedTotal=5]
^-- metrics [name=LocalUnrebalancedPartitionsCount, value=0]
^-- metrics [name=TotalUnrebalancedPartitionsCount, value=0]
^-- [partId=0, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=1, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=2, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=3, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=4, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=5, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
^-- [partId=6, pending=Assignments [nodes=HashSet [Assignment
[consistentId=irmt_trm_3344, isPeer=true]], force=false,
timestamp=116199195655798788, fromReset=false], stable=Assignments
[nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
force=false, timestamp=116199195616018435, fromReset=false]]
{noformat}
> Mute ItRebalanceMetricsTest.testRebalanceMetrics because it is flaky
> --------------------------------------------------------------------
>
> Key: IGNITE-28120
> URL: https://issues.apache.org/jira/browse/IGNITE-28120
> Project: Ignite
> Issue Type: Bug
> Components: metrics ai3, rebalance ai3
> Reporter: Vyacheslav Koptilin
> Assignee: Vyacheslav Koptilin
> Priority: Major
> Labels: MakeTeamcityGreenAgain, ignite-3
>
> Test fails with the following error:
> {noformat}
> rg.awaitility.core.ConditionTimeoutException: Assertion condition defined as
> a lambda expression in
> org.apache.ignite.internal.rebalance.ItRebalanceMetricsTest that uses
> java.util.List, java.util.Listjava.lang.String,
> java.lang.Stringjava.util.List, java.util.Listjava.util.List
> Expected: is <true>
> but: was <false> within 30 seconds.
> Expected :is <true>
> Actual :<false> within 30 seconds.
> <Click to see difference>
> at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
> at
> org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
> at
> org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
> at
> org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1160)
> at
> org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:790)
> at
> org.apache.ignite.internal.rebalance.ItRebalanceMetricsTest.assertRebalanceMetrics(ItRebalanceMetricsTest.java:246)
> at
> org.apache.ignite.internal.rebalance.ItRebalanceMetricsTest.testRebalanceMetrics(ItRebalanceMetricsTest.java:104)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
> at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
> Caused by: java.lang.AssertionError:
> Expected: is <true>
> but: was <false>
> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
> at
> org.apache.ignite.internal.rebalance.ItRebalanceMetricsTest.lambda$assertRebalanceMetrics$5(ItRebalanceMetricsTest.java:252)
> at
> org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)
> at
> org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)
> at
> org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
> It seems weird to me that the test detects that `penfing` assignments are the
> same as `stable` ones.
> {noformat}
> >>>>> partitions to rebalance [node= irmt_trm_3344, expectedLocal=0,
> >>>>> expectedTotal=5]
> ^-- metrics [name=LocalUnrebalancedPartitionsCount, value=0]
> ^-- metrics [name=TotalUnrebalancedPartitionsCount, value=0]
> ^-- [partId=0, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=1, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=2, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=3, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=4, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=5, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=6, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> >>>>> partitions to rebalance [node= irmt_trm_3345, expectedLocal=5,
> expectedTotal=5]
> ^-- metrics [name=LocalUnrebalancedPartitionsCount, value=0]
> ^-- metrics [name=TotalUnrebalancedPartitionsCount, value=0]
> ^-- [partId=0, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=1, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=2, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=3, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=4, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=5, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> ^-- [partId=6, pending=Assignments [nodes=HashSet [Assignment
> [consistentId=irmt_trm_3344, isPeer=true]], force=false,
> timestamp=116199195655798788, fromReset=false], stable=Assignments
> [nodes=HashSet [Assignment [consistentId=irmt_trm_3344, isPeer=true]],
> force=false, timestamp=116199195616018435, fromReset=false]]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)