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

Contributed by Craig Condit
This commit is contained in:
Eric Yang 2018-09-07 19:46:15 -04:00
parent 335a8139f5
commit 7d62334387
1 changed files with 1 additions and 11 deletions

View File

@ -611,17 +611,7 @@ public class LinuxContainerExecutor extends ContainerExecutor {
if (exitCode == if (exitCode ==
ExitCode.INVALID_CONTAINER_EXEC_PERMISSIONS.getExitCode() || ExitCode.INVALID_CONTAINER_EXEC_PERMISSIONS.getExitCode() ||
exitCode == exitCode ==
ExitCode.INVALID_CONFIG_FILE.getExitCode() || 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()) {
throw new ConfigurationException( throw new ConfigurationException(
"Linux Container Executor reached unrecoverable exception", e); "Linux Container Executor reached unrecoverable exception", e);
} }