Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1692

ConcurrentModificationException in fair scheduler AppSchedulable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5-alpha
    • 2.4.0
    • scheduler
    • None
    • Reviewed

    Description

      We saw a ConcurrentModificationException thrown in the fair scheduler:

      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)
      

      The map that gets returned by FSSchedulerApp.getResourceRequests() are iterated on without proper synchronization.

      Attachments

        1. yarn-1692-branch-2.3.patch
          4 kB
          Sangjin Lee
        2. yarn-1692.patch
          4 kB
          Sangjin Lee

        Issue Links

          Activity

            People

              sjlee0 Sangjin Lee
              sjlee0 Sangjin Lee
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: