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

Make ContainerPBImpl#getId/setId synchronized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.2.2, 3.4.0, 3.3.1
    • yarn-common
    • None

    Description

      ContainerPBImpl getId and setId methods can be accessed from multiple threads. In order to avoid any simultaneous accesses and race conditions these methods should be synchronized.

      The idea came from the issue described in YARN-10295, however that patch is only applicable to branch-3.2 and 3.1.

      Attachments

        1. YARN-10296.001.patch
          1 kB
          Benjamin Teke
        2. YARN-10296.002.patch
          1 kB
          Benjamin Teke
        3. YARN-10296.002.branch-3.1.patch
          1 kB
          Benjamin Teke
        4. YARN-10296.002.branch-3.2.patch
          1 kB
          Benjamin Teke
        5. YARN-10296.002.branch-3.3.patch
          1 kB
          Benjamin Teke

        Activity

          People

            bteke Benjamin Teke
            bteke Benjamin Teke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: