sanpwc commented on code in PR #4056:
URL: https://github.com/apache/ignite-3/pull/4056#discussion_r1728534108


##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/rebalance/DistributionZoneRebalanceEngine.java:
##########
@@ -204,10 +206,14 @@ public CompletableFuture<Void> onUpdate(WatchEvent evt) {
                     int zoneId = 
extractZoneId(evt.entryEvent().newEntry().key(), 
DISTRIBUTION_ZONE_DATA_NODES_VALUE_PREFIX);
 
                     // It is safe to get the latest version of the catalog as 
we are in the metastore thread.
-                    // TODO: IGNITE-22661 Potentially unsafe to use the latest 
catalog version, as the tables might not already present
+                    // TODO: IGNITE-22723 Potentially unsafe to use the latest 
catalog version, as the tables might not already present
                     //  in the catalog. Better to store this version when 
writing datanodes.
                     int catalogVersion = catalogService.latestCatalogVersion();
 
+                    Catalog catalog = catalogService.catalog(catalogVersion);
+
+                    HybridTimestamp assignmentsTimestamp = 
HybridTimestamp.hybridTimestamp(catalog.time());

Review Comment:
   I assume that given code will be adjusted in IGNITE-22723, right?



-- 
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]

Reply via email to