[
https://issues.apache.org/jira/browse/MAPREDUCE-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hong Tang updated MAPREDUCE-1961:
---------------------------------
Attachment: mr-1961-20100723.patch
Trivial patch that uses CopyOnWriteArrayList to avoid concurrent modification.
No unit test included as it is hard to reproduce the synchronization bug
through unit tests.
> [gridmix3] ConcurrentModificationException when shutting down Gridmix
> ---------------------------------------------------------------------
>
> Key: MAPREDUCE-1961
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1961
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Reporter: Hong Tang
> Assignee: Hong Tang
> Attachments: mr-1961-20100723.patch
>
>
> We observed the following exception occasionally at the end of the Gridmix
> run:
> {code}
> Exception in thread "StatsCollectorThread"
> java.util.ConcurrentModificationException
> at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
> at java.util.AbstractList$Itr.next(AbstractList.java:343)
> at
> org.apache.hadoop.mapred.gridmix.Statistics$StatCollector.updateAndNotifyClusterStatsListeners(Statistics.java:220)
> at
> org.apache.hadoop.mapred.gridmix.Statistics$StatCollector.run(Statistics.java:205)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.