denis-chudov commented on code in PR #5092: URL: https://github.com/apache/ignite-3/pull/5092#discussion_r1958098281
########## modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java: ########## @@ -159,29 +133,10 @@ public class DistributionZoneManager extends /** Executor for scheduling tasks for scale up and scale down processes. */ private final StripedScheduledThreadPoolExecutor executor; - /** - * Map with states for distribution zones. States are needed to track nodes that we want to add or remove from the data nodes, - * schedule and stop scale up and scale down processes. - */ - private final Map<Integer, ZoneState> zonesState = new ConcurrentHashMap<>(); + private DataNodesManager dataNodesManager; /** Listener for a topology events. */ - private final LogicalTopologyEventListener topologyEventListener = new LogicalTopologyEventListener() { - @Override - public void onNodeJoined(LogicalNode joinedNode, LogicalTopologySnapshot newTopology) { - updateLogicalTopologyInMetaStorage(newTopology); - } - - @Override - public void onNodeLeft(LogicalNode leftNode, LogicalTopologySnapshot newTopology) { - updateLogicalTopologyInMetaStorage(newTopology); - } - - @Override - public void onTopologyLeap(LogicalTopologySnapshot newTopology) { - updateLogicalTopologyInMetaStorage(newTopology); - } - }; + private final LogicalTopologyEventListener topologyEventListener = new DistributionZoneManagerLogicalTopologyEventListener(); /** * The logical topology mapped to the MS revision. Review Comment: It's not related. I will create another ticket for todo. -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org