Cyrill commented on code in PR #6288: URL: https://github.com/apache/ignite-3/pull/6288#discussion_r2222827534
########## modules/table/src/main/java/org/apache/ignite/internal/table/distributed/disaster/DisasterRecoveryManager.java: ########## @@ -1100,9 +1203,45 @@ private void handleTriggerKeyUpdate(WatchEvent watchEvent) { private void handleMessage(NetworkMessage message, ClusterNode sender, @Nullable Long correlationId) { if (message instanceof LocalPartitionStatesRequest) { handleLocalPartitionStatesRequest((LocalPartitionStatesRequest) message, sender, correlationId); + } else if (message instanceof LocalTableStateRequest) { + handleLocalTableStateRequest((LocalTableStateRequest) message, sender, correlationId); } } + private void handleLocalTableStateRequest(LocalTableStateRequest request, ClusterNode sender, @Nullable Long correlationId) { + assert correlationId != null : "request=" + request + ", sender=" + sender; + + int catalogVersion = request.catalogVersion(); + + Set<ZonePartitionId> requesedPartitions = request.zonePartitionIds().stream() + .map(ZonePartitionIdMessage::asZonePartitionId) + .collect(toSet()); + + catalogManager.catalogReadyFuture(catalogVersion).thenRunAsync(() -> { + List<LocalTableStateMessage> statesList = new ArrayList<>(); + + raftManager.forEach((raftNodeId, raftGroupService) -> { + if (raftNodeId.groupId() instanceof ZonePartitionId) { + + LocalTableStateMessage message = handleSizeRequestForTable( Review Comment: Renamed to 'handleSizeRequestForTablesInZone' -- 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