ferdelyi commented on code in PR #6960:
URL: https://github.com/apache/hadoop/pull/6960#discussion_r1713779763


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/LinuxContainerExecutor.java:
##########
@@ -451,8 +451,10 @@ public void startLocalizer(LocalizerStartContext ctx)
 
     } catch (PrivilegedOperationException e) {
       int exitCode = e.getExitCode();
-      LOG.warn("Exit code from container {} startLocalizer is : {}",
-          locId, exitCode, e);
+      LOG.error("Unrecoverable issue occurred. Marking the node as unhealthy 
to prevent "
+          + "further containers to get scheduled on the node and cause 
application failures. " +
+          "Exit code from the container " + locId + "startLocalizer is : " + 
exitCode, e);
+      nmContext.getNodeStatusUpdater().reportException(e);

Review Comment:
   @zeekling  thank you for your suggestion. To keep this change simple and 
easy to follow, I've filed your improvement idea under: 
[YARN-11715](https://issues.apache.org/jira/browse/YARN-11715)
   NodeManager should recover by itself once the container-executor can run 
program again



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to