sergeyuttsel commented on code in PR #1477:
URL: https://github.com/apache/ignite-3/pull/1477#discussion_r1065414476
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -354,6 +381,23 @@ public CompletableFuture<Void> dropZone(String name) {
}
}
+ /**
+ * Gets zone id by zone name.
+ *
+ * @param name Distribution zone name.
+ * @return The zone id.
+ * @throws DistributionZoneNotFoundException If the zone is not exist..
+ */
+ public int getZoneId(String name) {
+ DistributionZoneConfiguration zoneCfg =
zonesConfiguration.distributionZones().get(name);
Review Comment:
The idea used here is the same as when iterating over
tablesConfiguration.tables() in the dropZone. The getZoneId method is invoked
in the "change". The ticket will be created to work it correctly.
--
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]