MAPREDUCE-4206. Sorting by Last Health-Update on the RM nodes page sorts does not work correctly (Jonathon Eagles via tgraves)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1332232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Graves 2012-04-30 15:07:08 +00:00
parent 7407d5cd0f
commit 47df4697ba
2 changed files with 11 additions and 5 deletions

View File

@ -427,6 +427,9 @@ Release 0.23.3 - UNRELEASED
MAPREDUCE-4209. junit dependency in hadoop-mapreduce-client is missing MAPREDUCE-4209. junit dependency in hadoop-mapreduce-client is missing
scope test (Radim Kolar via bobby) scope test (Radim Kolar via bobby)
MAPREDUCE-4206. Sorting by Last Health-Update on the RM nodes page sorts
does not work correctly (Jonathon Eagles via tgraves)
Release 0.23.2 - UNRELEASED Release 0.23.2 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -121,7 +121,8 @@ class NodesPage extends RmView {
row.td().a("http://" + httpAddress, httpAddress)._(); row.td().a("http://" + httpAddress, httpAddress)._();
} }
row.td(info.getHealthStatus()). row.td(info.getHealthStatus()).
td(Times.format(info.getLastHealthUpdate())). td().br().$title(String.valueOf(info.getLastHealthUpdate()))._().
_(Times.format(info.getLastHealthUpdate()))._().
td(info.getHealthReport()). td(info.getHealthReport()).
td(String.valueOf(info.getNumContainers())). td(String.valueOf(info.getNumContainers())).
td().br().$title(String.valueOf(usedMemory))._(). td().br().$title(String.valueOf(usedMemory))._().
@ -153,10 +154,12 @@ class NodesPage extends RmView {
} }
private String nodesTableInit() { private String nodesTableInit() {
StringBuilder b = tableInit().append(",aoColumnDefs:["); StringBuilder b = tableInit().append(", aoColumnDefs: [");
b.append("{'bSearchable':false, 'aTargets': [7]} ,"); b.append("{'bSearchable': false, 'aTargets': [ 7 ]}");
b.append("{'sType':'title-numeric', 'bSearchable':false, " + b.append(", {'sType': 'title-numeric', 'bSearchable': false, " +
"'aTargets': [ 8, 9] }]}"); "'aTargets': [ 8, 9 ] }");
b.append(", {'sType': 'title-numeric', 'aTargets': [ 5 ]}");
b.append("]}");
return b.toString(); return b.toString();
} }
} }