[
https://issues.apache.org/jira/browse/MAPREDUCE-5937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15221316#comment-15221316
]
Akira AJISAKA commented on MAPREDUCE-5937:
------------------------------------------
{code:title=AbstractCounters#getGroupNames}
if(isFGroup ? fgroups.containsKey(newGroup) :
groups.containsKey(newGroup)) {
deprecated.add(entry.getKey());
}
{code}
I'm thinking {{fgroups.containsKey(newGroup)}} and
{{groups.containsKey(newGroup))}} should be {{!fgroups.containsKey(newGroup)}}
and {{!groups.containsKey(newGroup))}}, respectively. That way
{{getGroupNames()}} does not return duplicate group name.
> hadoop/mapred job -history <history_file> shows the counters twice in the
> output.
> ---------------------------------------------------------------------------------
>
> Key: MAPREDUCE-5937
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5937
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Affects Versions: 2.2.0, 2.7.2
> Reporter: Jinghui Wang
> Assignee: Andres Perez
> Labels: BB2015-05-TBR
> Attachments: MAPREDUCE-5937-branch-2.7-02.patch,
> MAPREDUCE-5937-branch-2.7.2.002.patch, MAPREDUCE-5937.patch,
> job_history_cli_sample.out
>
>
> HiistoryView#printCounters method uses AbstractCounter#getGroupNames, which
> includes legacy groups can cause duplicates on CLI output.
> See attached example output.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)