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

FSAppAttempt demand calculation considers demands at multiple locality levels different

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0, 2.7.2
    • 2.9.0, 3.0.0-alpha1
    • fairscheduler
    • None
    • Reviewed

    Description

      FSAppAttempt adds duplicate ResourceRequest to demand in updateDemand. We should only count ResourceRequest for ResourceRequest.ANY when calculate demand.
      Because hasContainerForNode will return false if no container request for ResourceRequest.ANY and both allocateNodeLocal and allocateRackLocal will also decrease the number of containers for ResourceRequest.ANY.
      This issue may cause current memory demand overflow(integer) because duplicate requests can be on multiple nodes.

      Attachments

        1. YARN-4979.001.patch
          4 kB
          Zhihai Xu

        Issue Links

          Activity

            People

              zxu Zhihai Xu
              zxu Zhihai Xu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: