[
https://issues.apache.org/jira/browse/YARN-9223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16749612#comment-16749612
]
Hadoop QA commented on YARN-9223:
---------------------------------
| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m
0s{color} | {color:blue} Docker mode activated. {color} |
| {color:red}-1{color} | {color:red} patch {color} | {color:red} 0m 6s{color}
| {color:red} YARN-9223 does not apply to trunk. Rebase required? Wrong Branch?
See https://wiki.apache.org/hadoop/HowToContribute for help. {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | YARN-9223 |
| Console output |
https://builds.apache.org/job/PreCommit-YARN-Build/23140/console |
| Powered by | Apache Yetus 0.8.0 http://yetus.apache.org |
This message was automatically generated.
> NPE happens in NM while loading recovery fails
> ----------------------------------------------
>
> Key: YARN-9223
> URL: https://issues.apache.org/jira/browse/YARN-9223
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: lujie
> Assignee: lujie
> Priority: Minor
> Attachments: YARN-9223_1.patch, hadoop-hd-nodemanager-slave1.log
>
>
> In org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit:
>
> {code:java}
> try {
> initAndStartRecoveryStore(conf);
> } catch (IOException e) {
> String recoveryDirName = conf.get(YarnConfiguration.NM_RECOVERY_DIR);
> throw new
> YarnRuntimeException("Unable to initialize recovery directory at "
> + recoveryDirName, e);
> }
> ............
> this.context = createNMContext(containerTokenSecretManager,
> nmTokenSecretManager, nmStore, isDistSchedulingEnabled, conf);
> {code}
> while Recovery fails, the context is null, and YarnRuntimeException will
> cause serviceStop to run(due to Shutdown Hook):
> {code:java}
> // Cleanup ResourcePluginManager
> ResourcePluginManager rpm = context.getResourcePluginManager();
> {code}
> hence NPE happens:
> {code:java}
> java.lang.NullPointerException
> at
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceStop(NodeManager.java:530)
> at org.apache.hadoop.service.AbstractService.stop(AbstractService.java:220)
> at org.apache.hadoop.service.ServiceOperations.stop(ServiceOperations.java:54)
> at
> org.apache.hadoop.service.ServiceOperations.stopQuietly(ServiceOperations.java:102)
> at org.apache.hadoop.service.AbstractService.init(AbstractService.java:172)
> at
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:984)
> at
> org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:1064)
> {code}
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]