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

Avoid concurrent modification exception in FifoIntraQueuePreemptionPlugin

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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.001.patch
          2 kB
          Eric Payne
        2. YARN-7051.002.patch
          3 kB
          Eric Payne

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment