Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Conversion of capacities are incorrect if the total doesn't add up exactly to 100.00%.

      The loop invariant must be fixed:

       for (int i = 0; i < children.size() - 2; i++) {
      

      The testcase needs to be fixed too:

          assertEquals("root.default capacity", "33.333",
              csConfig.get(PREFIX + "root.default.capacity"));
          assertEquals("root.admins capacity", "33.333",
              csConfig.get(PREFIX + "root.admins.capacity"));
          assertEquals("root.users capacity", "66.667",
              csConfig.get(PREFIX + "root.users.capacity"));
      

        Attachments

        1. YARN-10193-001.patch
          2 kB
          Peter Bacsko

          Activity

            People

            • Assignee:
              pbacsko Peter Bacsko
              Reporter:
              pbacsko Peter Bacsko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: