Cyrill commented on code in PR #5584: URL: https://github.com/apache/ignite-3/pull/5584#discussion_r2046987240
########## modules/table/src/integrationTest/java/org/apache/ignite/internal/table/distributed/disaster/AbstractHighAvailablePartitionsRecoveryTest.java: ########## @@ -286,11 +293,26 @@ private static Set<String> assignmentsFromPendingEntry(Entry entry) { } private Set<Assignment> getPartitionClusterNodes(IgniteImpl node, String tableName, int partNum) { + if (enabledColocation()) { + int zoneId = TableTestUtils.getZoneIdByTableNameStrict(node.catalogManager(), tableName, clock.nowLong()); + return getZonePartitionClusterNodes(node, zoneId, partNum); + } else { + return getTablePartitionClusterNodes(node, tableName, partNum); + } + } + + private Set<Assignment> getTablePartitionClusterNodes(IgniteImpl node, String tableName, int partNum) { return Optional.ofNullable(getTableId(node.catalogManager(), tableName, clock.nowLong())) .map(tableId -> stablePartitionAssignments(node.metaStorageManager(), tableId, partNum).join()) .orElse(Set.of()); } + private Set<Assignment> getZonePartitionClusterNodes(IgniteImpl node, @Nullable Integer zoneId, int partNum) { + return Optional.ofNullable(zoneId) + .map(id -> ZoneRebalanceUtil.zonePartitionAssignments(node.metaStorageManager(), id, partNum).join()) 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