[
https://issues.apache.org/jira/browse/MAPREDUCE-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891431#action_12891431
]
Hong Tang commented on MAPREDUCE-1961:
--------------------------------------
It seems that StatsCollectorThread is still active when we call
"clusterStatlisteners.clear();" from "Statistics.shutdown()".
A simple fix is to replace "clusterStatlisteners.clear();" with
"lusterStatlisteners = new ArrayList<StatListener<ClusterStats>>()".
While we are at it, we probably should also fix the same problem with
jobStatListeners.
> [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
>
> 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.