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

Scheduler UI and REST o/p is not in sync when -replaceLabelsOnNode is used to change label of a node

    Details

    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Scenario is as follows:
      a. 2 nodes are available in the cluster (node1 with label "x", node2 with label "y")
      b. Submit an application to node1 for label "x".
      c. Change node1 label to "y" by using replaceLabelsOnNode command.
      d. Verify Scheduler UI for metrics such as "Used Capacity", "Absolute Capacity" etc. "x" still shows some capacity.
      e. Change node1 label back to "x" and verify UI and REST o/p

      Output:
      1. "Used Capacity", "Absolute Capacity" etc are not decremented once labels is changed for a node.
      2. UI tab for respective label shows wrong GREEN color in these cases.
      3. REST o/p is wrong for each label after executing above scenario.

      Attaching screen shots also. This ticket will try to cover UI and REST o/p fix when label is changed runtime.

        Attachments

        1. 0001-YARN-4699.patch
          3 kB
          Sunil Govindan
        2. 0002-YARN-4699.patch
          9 kB
          Sunil Govindan
        3. AfterAppFInish-LabelY-Metrics.png
          100 kB
          Sunil Govindan
        4. ForLabelX-AfterSwitch.png
          103 kB
          Sunil Govindan
        5. ForLabelY-AfterSwitch.png
          104 kB
          Sunil Govindan

          Activity

            People

            • Assignee:
              sunilg Sunil Govindan
              Reporter:
              sunilg Sunil Govindan
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: