[
https://issues.apache.org/jira/browse/IGNITE-25269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17949737#comment-17949737
]
Mirza Aliev edited comment on IGNITE-25269 at 5/6/25 2:17 PM:
--------------------------------------------------------------
We need to fix test itself. Seems like we do not ensure that assertion
{{checkPartitionNodes(0, 2);}} is not invoked in the middle of rebalance from
3->2.
{code:java}
alterZone(node, ZONE_NAME, 2);
alterZone(node, ZONE_NAME, 3);
alterZone(node, ZONE_NAME, 2);
waitPartitionAssignmentsSyncedToExpected(0, 2);
checkPartitionNodes(0, 2);
{code}
One of the possible solution: alter zone replica from 2 to 3 and after that to
4 and only after that assert {{checkPartitionNodes(0, 4);}}
was (Author: maliev):
We need to fix test itself. Seems like we do not ensure that assertion
{{checkPartitionNodes(0, 2);}} is not invoked in the middle of rebalance from
3->2.
{code:java}
alterZone(node, ZONE_NAME, 2);
alterZone(node, ZONE_NAME, 3);
alterZone(node, ZONE_NAME, 2);
waitPartitionAssignmentsSyncedToExpected(0, 2);
checkPartitionNodes(0, 2);
{code}
On of the solution: alter zone replica from 2 to 3 and after that to 4 and only
after that assert {{checkPartitionNodes(0, 4);}}
> ItRebalanceDistributedTest.testThreeQueuedRebalances is flaky
> -------------------------------------------------------------
>
> Key: IGNITE-25269
> URL: https://issues.apache.org/jira/browse/IGNITE-25269
> Project: Ignite
> Issue Type: Bug
> Reporter: Mirza Aliev
> Priority: Major
> Labels: ignite-3
> Attachments:
> _Integration_Tests_Module_Distribution_Zones_17981.log.zip
>
>
> ItRebalanceDistributedTest.testThreeQueuedRebalances started to fail with
> {code:java}
> org.opentest4j.AssertionFailedError: irdt_ttqr_20000 ==> expected: <2> but
> was: <3>
> at
> app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
> at
> app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
> at
> app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
> at
> app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
> at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:563)
> at
> app//org.apache.ignite.internal.rebalance.ItRebalanceDistributedTest.checkPartitionNodes(ItRebalanceDistributedTest.java:1910)
> at
> app//org.apache.ignite.internal.rebalance.ItRebalanceDistributedTest.testThreeQueuedRebalances(ItRebalanceDistributedTest.java:494)
> at [email protected]/java.lang.reflect.Method.invoke(Method.java:568)
> at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
> at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
> {code}
> https://ci.ignite.apache.org/buildConfiguration/ApacheIgnite3xGradle_Test_RunAllTests/9094361
--
This message was sent by Atlassian Jira
(v8.20.10#820010)