sanpwc commented on code in PR #1729:
URL: https://github.com/apache/ignite-3/pull/1729#discussion_r1160515027


##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -168,6 +183,19 @@ public class DistributionZoneManager implements 
IgniteComponent {
      */
     private final Map<Integer, ZoneState> zonesState;
 
+    /** The tracker for last topology version which was observed by 
distribution zone manager. */
+    private final PendingComparableValuesTracker<Long> topVerTracker;
+
+    /**
+     * The last meta storage revision on which scale up timer was started.
+     */
+    private long lastScaleUpRevision;

Review Comment:
   AFAIK we need volatile here(and also for lastScaleDownRevision), because 
otherwise you might miss lastScale<>Revision updates triggered from within 
onUpdateScaleUp() 



-- 
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]

Reply via email to