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

NPE when rendering the info table of leaf queue in non-accessible partitions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.0, 3.2.1, 3.1.3
    • Component/s: capacityscheduler
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      I found incomplete queue info shown on scheduler page and NPE in RM log when rendering the info table of leaf queue in non-accessible partitions.

      Caused by: java.lang.NullPointerException
              at org.apache.hadoop.yarn.server.resourcemanager.webapp.CapacitySchedulerPage$LeafQueueInfoBlock.renderQueueCapacityInfo(CapacitySchedulerPage.java:163)
              at org.apache.hadoop.yarn.server.resourcemanager.webapp.CapacitySchedulerPage$LeafQueueInfoBlock.renderLeafQueueInfoWithPartition(CapacitySchedulerPage.java:108)
              at org.apache.hadoop.yarn.server.resourcemanager.webapp.CapacitySchedulerPage$LeafQueueInfoBlock.render(CapacitySchedulerPage.java:97)
              at org.apache.hadoop.yarn.webapp.view.HtmlBlock.render(HtmlBlock.java:69)
              at org.apache.hadoop.yarn.webapp.view.HtmlBlock.renderPartial(HtmlBlock.java:79)
              at org.apache.hadoop.yarn.webapp.View.render(View.java:243)
      

      The direct cause is that PartitionQueueCapacitiesInfo of leaf queues in non-accessible partitions are incomplete(part of fields are null such as configuredMinResource/configuredMaxResource/effectiveMinResource/effectiveMaxResource) but some places in CapacitySchedulerPage don't consider that.

        Attachments

        1. YARN-9685.001.patch
          5 kB
          Tao Yang

          Issue Links

            Activity

              People

              • Assignee:
                Tao Yang Tao Yang
                Reporter:
                Tao Yang Tao Yang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: