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

Race condition in ApplicationMasterService.allocate .. It might process same allocate request twice resulting in additional containers getting allocated.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • resourcemanager
    • None
    • Reviewed

    Description

      Looks like the lock taken in this is broken. It takes a lock on lastResponse object and then puts a new lastResponse object into the map. At this point a new thread entering this function will get a new lastResponse object and will be able to take its lock and enter the critical section. Presumably we want to limit one response per app attempt. So the lock could be taken on the ApplicationAttemptId key of the response map object.

      Attachments

        1. MAPREDUCE-3899-branch-0.23.patch
          9 kB
          Bikas Saha
        2. YARN-744.patch
          3 kB
          Omkar Vinit Joshi
        3. YARN-744-20130711.1.patch
          15 kB
          Omkar Vinit Joshi
        4. YARN-744-20130715.1.patch
          21 kB
          Omkar Vinit Joshi
        5. YARN-744-20130726.1.patch
          14 kB
          Omkar Vinit Joshi
        6. YARN-744.1.patch
          12 kB
          Omkar Vinit Joshi
        7. YARN-744.2.patch
          13 kB
          Omkar Vinit Joshi

        Issue Links

          Activity

            People

              ojoshi Omkar Vinit Joshi
              bikassaha Bikas Saha
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: