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

FSAppAttempt demand can be updated atomically in updateDemand()

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      FSAppAttempt#updateDemand first sets demand to 0, and then adds up all the outstanding requests. Instead, we could use another variable tmpDemand to build the new value and atomically replace the demand.

        Attachments

        1. YARN-6582.001.patch
          2 kB
          Karthik Kambatla

          Activity

            People

            • Assignee:
              kasha Karthik Kambatla
              Reporter:
              kasha Karthik Kambatla
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: