YARN-8751. Reduce conditions that mark node manager as unhealthy.

Contributed by Craig Condit

(cherry picked from commit 7d62334387)
This commit is contained in:
Eric Yang 2018-09-07 19:46:15 -04:00
parent 7fed1a07ab
commit 0b97dc5869
1 changed files with 1 additions and 11 deletions

View File

@ -611,17 +611,7 @@ public class LinuxContainerExecutor extends ContainerExecutor {
if (exitCode ==
ExitCode.INVALID_CONTAINER_EXEC_PERMISSIONS.getExitCode() ||
exitCode ==
ExitCode.INVALID_CONFIG_FILE.getExitCode() ||
exitCode ==
ExitCode.COULD_NOT_CREATE_SCRIPT_COPY.getExitCode() ||
exitCode ==
ExitCode.COULD_NOT_CREATE_CREDENTIALS_FILE.getExitCode() ||
exitCode ==
ExitCode.COULD_NOT_CREATE_WORK_DIRECTORIES.getExitCode() ||
exitCode ==
ExitCode.COULD_NOT_CREATE_APP_LOG_DIRECTORIES.getExitCode() ||
exitCode ==
ExitCode.COULD_NOT_CREATE_TMP_DIRECTORIES.getExitCode()) {
ExitCode.INVALID_CONFIG_FILE.getExitCode()) {
throw new ConfigurationException(
"Linux Container Executor reached unrecoverable exception", e);
}