[
https://issues.apache.org/jira/browse/MAPREDUCE-3749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom White updated MAPREDUCE-3749:
---------------------------------
Attachment: MAPREDUCE-3749.patch
Here's a fix which uses Guava's ImmutableSet.copyOf before creating the
iterator. There is a similar problem in AbstractCounterGroup too, which I've
fixed in the same way.
However, it may be better to fix these problems by using a concurrent
collection rather than synchronization and copying. MAPREDUCE-3511 was an
example of having too many copies of counter data structures in memory.
Getting weakly consistent views of counters is consistent with their current
semantics during the course of a job. So we might use ConcurrentSkipListMap for
the maps of name -> counter/group. Alternatively, we could use
ConcurrentHashMap and do sorting by name in the view layer.
> ConcurrentModificationException in counter groups
> -------------------------------------------------
>
> Key: MAPREDUCE-3749
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3749
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: mrv2
> Affects Versions: 0.23.0
> Reporter: Tom White
> Priority: Blocker
> Attachments: MAPREDUCE-3749-test.patch, MAPREDUCE-3749.patch
>
>
> Iterating over a counter's groups while adding more groups will cause a
> ConcurrentModificationException.
> This was found while running Hive unit tests against a recent 0.23 version.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira