Lalant commented on code in PR #7769:
URL: https://github.com/apache/ignite-3/pull/7769#discussion_r2940009552


##########
modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/TopologyTracker.java:
##########
@@ -106,6 +107,27 @@ public void stopTrack() {
         return null;
     }
 
+    /**
+     * Returns {@code true} if the logical topology snapshot contains a node 
with the given transient node id.
+     *
+     * @param nodeId Node id.
+     */
+    public boolean containsNodeId(UUID nodeId) {
+        LogicalTopologySnapshot logicalTopologySnap0 = topologySnapRef.get();
+
+        if (logicalTopologySnap0 == null || 
CollectionUtils.nullOrEmpty(logicalTopologySnap0.nodes())) {
+            return false;
+        }
+
+        for (LogicalNode node : logicalTopologySnap0.nodes()) {
+            if (node.id().equals(nodeId)) {
+                return true;
+            }
+        }
+

Review Comment:
   Will fix



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