hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1438956 - in /hadoop/common/branches/branch-1: CHANGES.txt src/webapps/job/jobdetails.jsp
Date Sat, 26 Jan 2013 20:33:42 GMT
Author: tucu
Date: Sat Jan 26 20:33:41 2013
New Revision: 1438956

URL: http://svn.apache.org/viewvc?rev=1438956&view=rev
Log:
MAPREDUCE-4962. jobdetails.jsp uses display name instead of real name to get counters. (sandyr
via tucu)

Modified:
    hadoop/common/branches/branch-1/CHANGES.txt
    hadoop/common/branches/branch-1/src/webapps/job/jobdetails.jsp

Modified: hadoop/common/branches/branch-1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/CHANGES.txt?rev=1438956&r1=1438955&r2=1438956&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/CHANGES.txt (original)
+++ hadoop/common/branches/branch-1/CHANGES.txt Sat Jan 26 20:33:41 2013
@@ -454,6 +454,9 @@ Release 1.2.0 - unreleased
     MAPREDUCE-4963. StatisticsCollector improperly keeps track of "Last Day" 
     and "Last Hour" statistics for new TaskTrackers. (rkanter via tucu)
 
+    MAPREDUCE-4962. jobdetails.jsp uses display name instead of real name 
+    to get counters. (sandyr via tucu)
+
 Release 1.1.2 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/branches/branch-1/src/webapps/job/jobdetails.jsp
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/src/webapps/job/jobdetails.jsp?rev=1438956&r1=1438955&r2=1438956&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/src/webapps/job/jobdetails.jsp (original)
+++ hadoop/common/branches/branch-1/src/webapps/job/jobdetails.jsp Sat Jan 26 20:33:41 2013
@@ -401,7 +401,8 @@
       
       boolean isFirst = true;
       for (Counters.Counter counter : totalGroup) {
-        String name = counter.getDisplayName();
+        String displayName = counter.getDisplayName();
+        String name = counter.getName();
         String mapValue = decimal.format(mapGroup.getCounter(name));
         String reduceValue = decimal.format(reduceGroup.getCounter(name));
         String totalValue = decimal.format(counter.getCounter());
@@ -416,7 +417,7 @@
             <%
           }
           %>
-          <td><%=HtmlQuoting.quoteHtmlChars(name)%></td>
+          <td><%=HtmlQuoting.quoteHtmlChars(displayName)%></td>
           <td align="right"><%=mapValue%></td>
           <td align="right"><%=reduceValue%></td>
           <td align="right"><%=totalValue%></td>



Mime
View raw message