mynameis180 commented on code in PR #8081:
URL: https://github.com/apache/hadoop/pull/8081#discussion_r2540273464


##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.js:
##########
@@ -278,9 +278,26 @@
         for (var i = 0, e = nodes.length; i < e; ++i) {
           var n = nodes[i];
           n.usedPercentage = Math.round((n.used + n.nonDfsUsedSpace) * 1.0 / 
n.capacity * 100);
-          var port = n.infoAddr.split(":")[1];
-          var securePort = n.infoSecureAddr.split(":")[1];
+          var infoAddrParts = n.infoAddr.split("]:");
+          var port = "9864";

Review Comment:
   ok,I will remove duplicate variable declaration - The original code declared 
port twice
   remove the hardcoded "9864" assignment as requested



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