sanpwc commented on code in PR #1477:
URL: https://github.com/apache/ignite-3/pull/1477#discussion_r1064726060
##########
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:
Not sure whether local evaluation is enough here. What do you think? We can
use directValue as a last resort, but should start with considering other
options.
--
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]