Brian Loss created HADOOP-10934: ----------------------------------- Summary: AbstractCounters.readFields doesn't clear "other" groups Key: HADOOP-10934 URL: https://issues.apache.org/jira/browse/HADOOP-10934 Project: Hadoop Common Issue Type: Bug Affects Versions: 2.4.1, 2.4.0, 2.3.0, 2.2.0 Reporter: Brian Loss
The readFields method of AbstractCounters clears the "framework and fs groups" map {{fgroups}}, but does not clear the "other groups" map {{groups}}. If a Counters object is used as the key or value record reader, it will aggregate groups over all records rather than just returning the counters for the current record. In all likelihood, in addition to providing incorrect data, the counter limit will also be exceeded as it is checked each time through readFields. -- This message was sent by Atlassian JIRA (v6.2#6252)