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

Clean a piece of code in ResourceRequest

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.5.0
    • None
    • None
    • Reviewed

    Description

      if (numContainersComparison == 0) {
        return 0;
      } else {
        return numContainersComparison;
      }
      

      This code should be cleaned as

      return numContainersComparison;
      

      Attachments

        1. YARN-2195.patch
          1 kB
          Wei Yan

        Activity

          People

            ywskycn Wei Yan
            ywskycn Wei Yan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: