sergeyuttsel commented on code in PR #1477:
URL: https://github.com/apache/ignite-3/pull/1477#discussion_r1065410424
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -328,20 +341,34 @@ public CompletableFuture<Void> dropZone(String name) {
CompletableFuture<Void> fut = new CompletableFuture<>();
zonesConfiguration.change(zonesChange ->
zonesChange.changeDistributionZones(zonesListChange -> {
- DistributionZoneView view = zonesListChange.get(name);
+ DistributionZoneView zoneView = zonesListChange.get(name);
- if (view == null) {
+ if (zoneView == null) {
throw new DistributionZoneNotFoundException(name);
}
+ NamedConfigurationTree<TableConfiguration, TableView,
TableChange> tables = tablesConfiguration.tables();
+
+ boolean bindTable = tables.value().namedListKeys().stream()
+ .anyMatch(tableName -> {
+ Integer tableZoneId =
tables.get(tableName).zoneId().value();
+
+ return tableZoneId != null &&
tableZoneId.equals(zoneView.zoneId());
Review Comment:
I changed it. But it will be changed again within the scope of the default
zone ticket.
--
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]