CharlieYan24 commented on code in PR #4452:
URL: https://github.com/apache/linkis/pull/4452#discussion_r1172423461


##########
linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/scala/org/apache/linkis/manager/am/manager/DefaultEngineNodeManager.scala:
##########
@@ -105,7 +110,11 @@ class DefaultEngineNodeManager extends EngineNodeManager 
with Logging {
     val heartMsg = engine.getNodeHeartbeatMsg()
     engineNode.setNodeHealthyInfo(heartMsg.getHealthyInfo)
     engineNode.setNodeOverLoadInfo(heartMsg.getOverLoadInfo)
-    engineNode.setNodeResource(heartMsg.getNodeResource)
+
+    // get node resource from DB
+    val rmNodes: util.List[RMNode] =
+      
resourceManager.getResourceInfo(Array(engineNode.getServiceInstance)).resourceInfo
+    engineNode.setNodeResource(rmNodes.get(0).getNodeResource)

Review Comment:
   Already remove  setNodeResource method, Thanks .



-- 
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: notifications-unsubscr...@linkis.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@linkis.apache.org
For additional commands, e-mail: notifications-h...@linkis.apache.org

Reply via email to