Mark Wagner created MAPREDUCE-5682:
--------------------------------------

             Summary: Job Counters are not retrieved properly from web UI
                 Key: MAPREDUCE-5682
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5682
             Project: Hadoop Map/Reduce
          Issue Type: Bug
          Components: mrv1
    Affects Versions: 1.2.1
            Reporter: Mark Wagner
            Assignee: Mark Wagner


After MAPREDUCE-4962, most job counters are coming back as 0 because the web UI 
retrieves them using the name instead of displayName, which is what is 
expected: 

{code}
    /**
     * Returns the value of the specified counter, or 0 if the counter does
     * not exist.
     */
    public synchronized long getCounter(String counterName) {
      for(Counter counter: subcounters.values()) {
        if (counter != null && counter.getDisplayName().equals(counterName)) {
          return counter.getValue();
        }
      }
      return 0L;
    }{code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to