sergeyuttsel commented on code in PR #1729:
URL: https://github.com/apache/ignite-3/pull/1729#discussion_r1132038085
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -159,6 +167,36 @@ public class DistributionZoneManager implements
IgniteComponent {
*/
private final Map<Integer, ZoneState> zonesState;
+ /** Data nodes modification mutex. */
+ private final Object dataNodesMutex = new Object();
+
+ /** The last topology version wich was observed by distribution zone
manager. */
+ private long lastTopVer;
+
+ /**
+ * Contains data nodes and meta info for zones.
+ * Map (zone id -> data nodes).
+ */
+ private final Map<Integer, DataNodes> dataNodes = new
ConcurrentHashMap<>();
Review Comment:
Yes. I think we can use HashMap and TreeMap. Fixed.
--
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]