sergeyuttsel commented on code in PR #1532:
URL: https://github.com/apache/ignite-3/pull/1532#discussion_r1072748804
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -791,9 +813,19 @@ public boolean onUpdate(@NotNull WatchEvent evt) {
logicalTopology = newLogicalTopology;
-
zonesConfiguration.distributionZones().value().namedListKeys()
+ Stream.of(
Review Comment:
Fixed, thanks.
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -289,54 +290,43 @@ public CompletableFuture<Void> alterZone(String name,
DistributionZoneConfigurat
try {
CompletableFuture<Void> fut = new CompletableFuture<>();
- zonesConfiguration.change(zonesChange ->
zonesChange.changeDistributionZones(zonesListChange -> {
- NamedListChange<DistributionZoneView, DistributionZoneChange>
renameChange;
+ CompletableFuture<Void> change;
- try {
- renameChange = zonesListChange.rename(name,
distributionZoneCfg.name());
- } catch (IllegalArgumentException e) {
- throw new DistributionZoneRenameException(name,
distributionZoneCfg.name(), e);
- }
+ if (DEFAULT_ZONE_NAME.equals(name)) {
+ change = zonesConfiguration.change(zonesChange -> zonesChange
Review Comment:
Fixed, thanks.
--
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]