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

RMServerUtils does not count SHUTDOWN as an accepted state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.3
    • 2.10.0, 3.0.4, 3.3.0, 2.8.6, 3.2.1, 2.9.3, 3.1.3
    • None
    • None
    • Reviewed

    Description

      if (acceptedStates.contains(NodeState.DECOMMISSIONED) ||
              acceptedStates.contains(NodeState.LOST) ||
              acceptedStates.contains(NodeState.REBOOTED)) {
            for (RMNode rmNode : context.getInactiveRMNodes().values()) {
              if ((rmNode != null) && acceptedStates.contains(rmNode.getState())) {
                results.add(rmNode);
              }
            }
          }
          return results;
        }
      

      This should include SHUTDOWN state as they are inactive too. This method is used for node reports and such so might be useful to account for them as well.

      Attachments

        1. YARN-9206-branch-3.1.002.patch
          8 kB
          Sunil G
        2. YARN-9206-branch-3.1.001.patch
          8 kB
          Kuhu Shukla
        3. YARN-9206-branch-2.8.001.patch
          3 kB
          Kuhu Shukla
        4. YARN-9206.004.patch
          8 kB
          Kuhu Shukla
        5. YARN-9206.003.patch
          8 kB
          Kuhu Shukla
        6. YARN-9206.002.patch
          7 kB
          Kuhu Shukla
        7. YARN-9206.001.patch
          1 kB
          Kuhu Shukla

        Activity

          People

            kshukla Kuhu Shukla
            kshukla Kuhu Shukla
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: