[ 
https://issues.apache.org/jira/browse/YARN-7120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150577#comment-16150577
 ] 

Jason Lowe commented on YARN-7120:
----------------------------------

Thanks for the patch!

If I understand the patch correctly, this won't NPE in practice but we'll end 
up printing "null" for the container and/or node.  Seems like we should print 
"N/A" for those cases instead to be consistent with what is printed when there 
is no detailed information.  Or maybe it makes more sense not to print anything 
at all, especially when the container ID is not available?

> CapacitySchedulerPage NPE in "Aggregate scheduler counts" section
> -----------------------------------------------------------------
>
>                 Key: YARN-7120
>                 URL: https://issues.apache.org/jira/browse/YARN-7120
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.9.0, 2.8.1, 3.0.0-alpha3
>            Reporter: Eric Payne
>            Assignee: Eric Payne
>            Priority: Minor
>         Attachments: Aggregate Scheduler Counts All Sections.png, Aggregate 
> Scheduler Counts Bottom Cut Off.png, YARN-7120.001.patch
>
>
> The problem manifests itself by having the bottom part of the "Aggregated 
> scheduler counts" section cut off on the GUI and an NPE in the RM log.
> {noformat}
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.webapp.CapacitySchedulerPage$HealthBlock.render(CapacitySchedulerPage.java:558)
>       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:235)
>       at 
> org.apache.hadoop.yarn.webapp.view.HtmlBlock$Block.subView(HtmlBlock.java:43)
>       at org.apache.hadoop.yarn.webapp.hamlet2.Hamlet.__(Hamlet.java:30354)
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.webapp.CapacitySchedulerPage$QueuesBlock.render(CapacitySchedulerPage.java:478)
>       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:235)
>       at 
> org.apache.hadoop.yarn.webapp.view.HtmlPage$Page.subView(HtmlPage.java:49)
>       at 
> org.apache.hadoop.yarn.webapp.hamlet2.HamletImpl$EImp._v(HamletImpl.java:117)
>       at org.apache.hadoop.yarn.webapp.hamlet2.Hamlet$TD.__(Hamlet.java:848)
>       at 
> org.apache.hadoop.yarn.webapp.view.TwoColumnLayout.render(TwoColumnLayout.java:71)
>       at org.apache.hadoop.yarn.webapp.view.HtmlPage.render(HtmlPage.java:82)
>       at org.apache.hadoop.yarn.webapp.Controller.render(Controller.java:212)
>       at 
> org.apache.hadoop.yarn.server.resourcemanager.webapp.RmController.scheduler(RmController.java:86)
>       ... 58 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to