You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Sunil G (JIRA)" <ji...@apache.org> on 2018/03/23 18:44:00 UTC
[jira] [Commented] (YARN-8068) Upgrading apps from Hadoop 2.7 based
clients to 2.8+ cause NPE in app timeline publish
[ https://issues.apache.org/jira/browse/YARN-8068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16411876#comment-16411876 ]
Sunil G commented on YARN-8068:
-------------------------------
[~leftnoteasy], could u pls help to check this.
Usually for app which are not submitted w/o any priority, RMAppManager ensures it to be set with 0. However when we have app which are pre-2.8 versions, submissionContext.getPriority will be null and RMApp will have null reference for applicationPriority. This could cause issue in ATS event publishing , UI etc. Hence we can assume priority will be 0 from RMAppImpl if submission context doesnt carry app priority.
cc/ [~rohithsharma]
> Upgrading apps from Hadoop 2.7 based clients to 2.8+ cause NPE in app timeline publish
> --------------------------------------------------------------------------------------
>
> Key: YARN-8068
> URL: https://issues.apache.org/jira/browse/YARN-8068
> Project: Hadoop YARN
> Issue Type: Bug
> Components: yarn
> Affects Versions: 2.8.3
> Reporter: Sunil G
> Assignee: Sunil G
> Priority: Blocker
> Attachments: YARN-8068.001.patch
>
>
> [TimelineServiceV1Publisher|eclipse-javadoc:%E2%98%82=hadoop-yarn-server-resourcemanager/src%5C/main%5C/java%3Corg.apache.hadoop.yarn.server.resourcemanager.metrics%7BTimelineServiceV1Publisher.java%E2%98%83TimelineServiceV1Publisher].appCreated will cause NPE as we use like below
> {code:java}
> entityInfo.put(ApplicationMetricsConstants.APPLICATION_PRIORITY_INFO, app.getApplicationPriority().getPriority());{code}
> We have to handle this case while recovery.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org