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

Avoid concurrent modification exception in FifoIntraQueuePreemptionPlugin

    XMLWordPrintableJSON

Details

    • 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

            epayne Eric Payne
            epayne Eric Payne
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: