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

Avoid concurrent modification exception in FifoIntraQueuePreemptionPlugin

    Details

    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      FifoIntraQueuePreemptionPlugin#calculateUsedAMResourcesPerQueue has the following code:

          Collection<FiCaSchedulerApp> runningApps = leafQueue.getApplications();
          Resource amUsed = Resources.createResource(0, 0);
      
          for (FiCaSchedulerApp app : runningApps) {
      

      runningApps is unmodifiable but not concurrent. This caused the preemption monitor thread to crash in the RM in one of our clusters.

        Attachments

        1. YARN-7051.002.patch
          3 kB
          Eric Payne
        2. YARN-7051.001.patch
          2 kB
          Eric Payne

          Activity

            People

            • Assignee:
              eepayne Eric Payne
              Reporter:
              eepayne Eric Payne
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: