YARN-8751. Reduce conditions that mark node manager as unhealthy.
Contributed by Craig Condit
(cherry picked from commit 7d62334387
)
This commit is contained in:
parent
7fed1a07ab
commit
0b97dc5869
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue