hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunil G (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7925) Some NPE errors caused a display errors when setting node labels
Date Tue, 13 Feb 2018 08:34:00 GMT

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

Sunil G commented on YARN-7925:

Thanks [~lingjinjiang]

This is a problem.

I checked patch.

1. PartitionQueueCapacitiesInfo change for getConfiguredMaxResource is added to show "unlimited"
in the cs page.So if its an issue, then we can do null check in getConfiguredMaxResource.

2. Rather than fixing in CapacitySchedulerPage for *null* check, lets see whether we can
handle this in specific  logic in *PartitionQueueCapacitiesInfo.PartitionQueueCapacitiesInfo().*
I think we can initialize all 4 objects (configuredMinResource; configuredMaxResource; effectiveMinResource; effectiveMaxResource)
to Resource.newInstance(0,0) so that even we invoke {{QueueCapacitiesInfo.getPartitionQueueCapacitiesInfo(String
partitionName)}} and the queue info is not configured for *partitionName* , then also we ll
have valid resource objects initialized to 0. 


> Some NPE errors caused a display errors when setting node labels
> ----------------------------------------------------------------
>                 Key: YARN-7925
>                 URL: https://issues.apache.org/jira/browse/YARN-7925
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Jinjiang Ling
>            Assignee: Jinjiang Ling
>            Priority: Major
>         Attachments: DisplayError.png, YARN-7925.001.patch
> I'm trying to using the node label with latest hadoop (3.1.0-SNAPSHOT). But when I add
a new node label and append a nodemanager to it, sometimes it may cause a display error.
> !DisplayError.png|width=573,height=188!
> Then I found *when there is no queues can access to the label*,  this error will happen.
> After checking the log, I find some NPE errors.
> {quote}......
>  Caused by: java.lang.NullPointerException
>  at org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInfo.toString(ResourceInfo.java:73)
>  at org.apache.hadoop.yarn.server.resourcemanager.webapp.CapacitySchedulerPage$LeafQueueInfoBlock.renderQueueCapacityInfo(CapacitySchedulerPage.java:160)
>  ......
> {quote}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org

View raw message