sashapolo commented on code in PR #5258:
URL: https://github.com/apache/ignite-3/pull/5258#discussion_r1981510152
##########
modules/partition-replicator/src/integrationTest/java/org/apache/ignite/internal/partition/replicator/ItReplicaLifecycleTest.java:
##########
@@ -636,6 +639,54 @@ public void testScanCloseReplicaRequest() throws Exception
{
assertDoesNotThrow(tx::commit);
}
+ @Test
+ public void testReplicaSafeTimeSyncRequest() throws Exception {
+ startCluster(2);
+ Node node = getNode(0);
+
+ // Prepare a zone.
+ String zoneName = "test_zone";
+ createZone(node, zoneName, 1, 2);
+ int zoneId = DistributionZonesTestUtil.getZoneId(node.catalogManager,
zoneName, node.hybridClock.nowLong());
+ int partId = 0;
+
+ // Wait for sure that zone replication group was created on both nodes.
+ waitForZoneReplicaStartedOnNode(node, zoneId, partId);
+ waitForZoneReplicaStartedOnNode(getNode(1), zoneId, partId);
Review Comment:
It does look more verbose, but you had to introduce a separate method while
an existing method would have solved this problem.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]