YARN-8326. Removed exit code file check for launched container.
Contributed by Shane Kumpf (cherry picked from commit 8a32bc39eb210fca8052c472601e24c2446b4cc2)
This commit is contained in:
parent
1974dfa44d
commit
3b3a85002d
@ -817,25 +817,6 @@ public void cleanupContainer() throws IOException {
|
||||
}
|
||||
}
|
||||
|
||||
final int sleepMsec = 100;
|
||||
int msecLeft = 2000;
|
||||
if (pidFilePath != null) {
|
||||
File file = new File(getExitCodeFile(pidFilePath.toString()));
|
||||
while (!file.exists() && msecLeft >= 0) {
|
||||
try {
|
||||
Thread.sleep(sleepMsec);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
msecLeft -= sleepMsec;
|
||||
}
|
||||
if (msecLeft < 0) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Timeout while waiting for the exit code file: "
|
||||
+ file.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Reap the container
|
||||
boolean result = exec.reapContainer(
|
||||
new ContainerReapContext.Builder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user