jackjlli commented on code in PR #8820:
URL: https://github.com/apache/pinot/pull/8820#discussion_r888482844


##########
pinot-server/src/main/java/org/apache/pinot/server/starter/helix/BaseServerStarter.java:
##########
@@ -343,10 +343,21 @@ private void updateInstanceConfigIfNeeded(ServerConf 
serverConf) {
     }
 
     // Update system resource info (CPU, memory, etc)
-    Map<String, String> systemResourceInfoMap = new 
SystemResourceInfo().toMap();
-    if 
(!systemResourceInfoMap.equals(znRecord.getMapField(Instance.SYSTEM_RESOURCE_INFO_KEY)))
 {
-      LOGGER.info("Updating instance: {} with system resource info: {}", 
_instanceId, systemResourceInfoMap);
-      znRecord.setMapField(Instance.SYSTEM_RESOURCE_INFO_KEY, 
systemResourceInfoMap);
+    Map<String, String> newSystemResourceInfoMap = new 
SystemResourceInfo().toMap();
+    Map<String, String> oldSystemResourceInfoMap =

Review Comment:
   sed `s/oldSystemResourceInfoMap/existingSystemResourceInfoMap/`



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