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

Make ContainerPBImpl#getId/setId synchronized

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.2.2, 3.4.0, 3.3.1, 3.1.5
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      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.branch-3.1.patch
          1 kB
          Benjamin Teke
        3. YARN-10296.002.branch-3.2.patch
          1 kB
          Benjamin Teke
        4. YARN-10296.002.branch-3.3.patch
          1 kB
          Benjamin Teke
        5. YARN-10296.002.patch
          1 kB
          Benjamin Teke

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: