Browse Source

HDFS-17271. Fix dead DN sorting in web UI (#6318). Contributed by Felix N.

Reviewed-by: Shilun Fan <slfan1989@apache.org>
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
Felix Nguyen 1 year ago
parent
commit
e76477e823

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/webapps/router/federationhealth.html

@@ -383,7 +383,7 @@
     <td ng-value="{state}">{state}</td>
     <td ng-value="{state}-{name}" class="dfshealth-node-icon dfshealth-node-{state}">{location}/{name} ({xferaddr})</td>
     <td></td>
-    <td>{#helper_relative_time value="{lastContact}"/}</td>
+    <td ng-value="{lastContact}">{#helper_relative_time value="{lastContact}"/}</td>
     <td></td>
     <td></td>
     <td></td>

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html

@@ -356,7 +356,7 @@
     <td ng-value="{state}">{state}</td>
     <td ng-value="{state}-{name}" class="dfshealth-node-icon dfshealth-node-{state}">{location}/{name} ({xferaddr})</td>
     <td></td>
-    <td>{#helper_relative_time value="{lastContact}"/}</td>
+    <td ng-value="{lastContact}">{#helper_relative_time value="{lastContact}"/}</td>
     <td></td>
     <td></td>
     <td></td>