You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Sangjin Lee (JIRA)" <ji...@apache.org> on 2014/02/08 02:09:19 UTC
[jira] [Updated] (YARN-1692) ConcurrentModificationException in
fair scheduler AppSchedulable
[ https://issues.apache.org/jira/browse/YARN-1692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sangjin Lee updated YARN-1692:
------------------------------
Attachment: yarn-1692.patch
> ConcurrentModificationException in fair scheduler AppSchedulable
> ----------------------------------------------------------------
>
> Key: YARN-1692
> URL: https://issues.apache.org/jira/browse/YARN-1692
> Project: Hadoop YARN
> Issue Type: Bug
> Components: scheduler
> Affects Versions: 2.0.5-alpha
> Reporter: Sangjin Lee
> Attachments: yarn-1692.patch
>
>
> We saw a ConcurrentModificationException thrown in the fair scheduler:
> {noformat}
> 2014-02-07 01:40:01,978 ERROR org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler: Exception in fair scheduler UpdateThread
> java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)
> at java.util.HashMap$ValueIterator.next(HashMap.java:954)
> at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.AppSchedulable.updateDemand(AppSchedulable.java:85)
> at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSLeafQueue.updateDemand(FSLeafQueue.java:125)
> at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSParentQueue.updateDemand(FSParentQueue.java:82)
> at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler.update(FairScheduler.java:217)
> at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler$UpdateThread.run(FairScheduler.java:195)
> at java.lang.Thread.run(Thread.java:724)
> {noformat}
> The map that gets returned by FSSchedulerApp.getResourceRequests() are iterated on without proper synchronization.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)