CRZbulabula commented on code in PR #7108:
URL: https://github.com/apache/iotdb/pull/7108#discussion_r954458022


##########
confignode/src/main/java/org/apache/iotdb/confignode/manager/load/heartbeat/ConfigNodeHeartbeatCache.java:
##########
@@ -60,23 +60,15 @@ public boolean updateLoadStatistic() {
       }
     }
 
-    NodeStatus originStatus;
-    switch (status) {
-      case Running:
-        originStatus = NodeStatus.Running;
-        break;
-      case Unknown:
-      default:
-        originStatus = NodeStatus.Unknown;
-    }
+    String originStatus = status.getStatus();

Review Comment:
   Fixed. We only need to broadcast the latest RegionRouteMap when Running 
changes to another state or when other states change to Running.



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