Hexiaoqiao commented on code in PR #8081:
URL: https://github.com/apache/hadoop/pull/8081#discussion_r2532651861
##########
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:
This static value should be not necessary here. It is better to correct it
include the following same definition.
--
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]