xianjingfeng commented on code in PR #1862:
URL: 
https://github.com/apache/incubator-uniffle/pull/1862#discussion_r1667843149


##########
coordinator/src/main/java/org/apache/uniffle/coordinator/SimpleClusterManager.java:
##########
@@ -226,8 +226,13 @@ private void parseExcludeNodesFile(DataInputStream 
fsDataInputStream) throws IOE
   public void add(ServerNode node) {
     if (!servers.containsKey(node.getId())) {
       LOG.info("Newly registering node: {}", node.getId());
+    } else {
+      ServerNode pre = servers.get(node.getId());
+      long regTime = pre.getRegistrationTime();
+      // inherit registration time
+      node.setRegistrationTime(regTime);
     }

Review Comment:
   ```suggestion
       ServerNode pre = servers.get(node.getId());
       if (pre == null) {
         LOG.info("Newly registering node: {}", node.getId());
       } else {
         long regTime = pre.getRegistrationTime();
         // inherit registration time
         node.setRegistrationTime(regTime);
       }
   ```



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to