[
https://issues.apache.org/jira/browse/YARN-4623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15110849#comment-15110849
]
Naganarasimha G R commented on YARN-4623:
-----------------------------------------
Thanks for pointing it out [~rohithsharma], Code is different from trunk &
2.6, hence had give a different patch in YARN-4452. In 2.6
{{SystemMetricsPublisher#appAttemptFinished}} is not storing the master
containerId, i verified the same again by running the testcase and checking the
code in branch 2.6.
> TestSystemMetricsPublisher#testPublishAppAttemptMetricsForUnmanagedAM fails
> with NPE
> ------------------------------------------------------------------------------------
>
> Key: YARN-4623
> URL: https://issues.apache.org/jira/browse/YARN-4623
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: yarn
> Affects Versions: 2.7.3
> Reporter: Jason Lowe
> Assignee: Naganarasimha G R
> Attachments: YARN-4623-branch-2.7.v1.001.patch
>
>
> testPublishAppAttemptMetricsForUnmanagedAM is failing with a
> NullPointerException on branch-2.7.
> {noformat}
> Running
> org.apache.hadoop.yarn.server.resourcemanager.metrics.TestSystemMetricsPublisher
> Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.393 sec <<<
> FAILURE! - in
> org.apache.hadoop.yarn.server.resourcemanager.metrics.TestSystemMetricsPublisher
> testPublishAppAttemptMetricsForUnmanagedAM(org.apache.hadoop.yarn.server.resourcemanager.metrics.TestSystemMetricsPublisher)
> Time elapsed: 0.026 sec <<< ERROR!
> java.lang.NullPointerException: null
> at
> org.apache.hadoop.yarn.server.resourcemanager.metrics.SystemMetricsPublisher.appAttemptFinished(SystemMetricsPublisher.java:163)
> at
> org.apache.hadoop.yarn.server.resourcemanager.metrics.TestSystemMetricsPublisher.testPublishAppAttemptMetricsForUnmanagedAM(TestSystemMetricsPublisher.java:204)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)