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

FairScheduler: Potential integer overflow calculating totalMaxShare

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • scheduler
    • None
    • Reviewed

    Description

      FairScheduler: totalMaxShare is not calculated correctly in computeSharesInternal for some cases.
      If the sum of MAX share of all Schedulables is more than Integer.MAX_VALUE ,but each individual MAX share is not equal to Integer.MAX_VALUE. then totalMaxShare will be a negative value, which will cause all fairShare are wrongly calculated.

      Attachments

        1. YARN-2534.000.patch
          4 kB
          Zhihai Xu

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: