alievmirza commented on code in PR #4905: URL: https://github.com/apache/ignite-3/pull/4905#discussion_r1896724836
########## modules/table/src/integrationTest/java/org/apache/ignite/internal/table/distributed/disaster/ItHighAvailablePartitionsRecoveryTest.java: ########## @@ -230,4 +230,64 @@ void testNoHaRecoveryForScZone() throws InterruptedException { assertRecoveryKeyIsEmpty(node); } + + @Test + void testScaleUpAfterHaRecoveryWhenMajorityLoss() throws Exception { + startNode(3); + + startNode(4); + + createHaZoneWithTable(); + + IgniteImpl node = igniteImpl(0); + + assertRecoveryKeyIsEmpty(node); + + stopNodes(1, 2, 3, 4); + + waitAndAssertRecoveryKeyIsNotEmpty(node); + + assertRecoveryRequestForHaZoneTable(node); + + waitAndAssertStableAssignmentsOfPartitionEqualTo(node, HA_TABLE_NAME, Set.of(0, 1), Set.of(node.name())); + + var node1 = startNode(1); + + waitAndAssertStableAssignmentsOfPartitionEqualTo( + node, + HA_TABLE_NAME, + Set.of(0, 1), + Set.of(node.name(), node1.name()) + ); + + var node2 = startNode(2); + + waitAndAssertStableAssignmentsOfPartitionEqualTo( + node, + HA_TABLE_NAME, + Set.of(0, 1), + Set.of(node.name(), node1.name(), node2.name()) + ); + } + + @Test + void testHaZoneScaleDownNodesDoNotRemovedFromStable() throws InterruptedException { + startNode(3); + + startNode(4); + + createHaZoneWithTable(); + + IgniteImpl node = igniteImpl(0); + + Set<String> allNodes = runningNodes().map(Ignite::name).collect(Collectors.toUnmodifiableSet()); + + stopNodes(3); Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org