YARN-9483. DistributedShell does not release container when failed to localize at launch. Contributed by Prabhu Joseph.
This commit is contained in:
parent
18cca583ac
commit
ec36126346
@ -1475,6 +1475,8 @@ public void run() {
|
|||||||
try {
|
try {
|
||||||
fs = FileSystem.get(conf);
|
fs = FileSystem.get(conf);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
numCompletedContainers.incrementAndGet();
|
||||||
|
numFailedContainers.incrementAndGet();
|
||||||
throw new UncheckedIOException("Cannot get FileSystem", e);
|
throw new UncheckedIOException("Cannot get FileSystem", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1492,6 +1494,8 @@ public void run() {
|
|||||||
LOG.info("Setting up file for localization: " + dst);
|
LOG.info("Setting up file for localization: " + dst);
|
||||||
localResources.put(fileName, localRes);
|
localResources.put(fileName, localRes);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
numCompletedContainers.incrementAndGet();
|
||||||
|
numFailedContainers.incrementAndGet();
|
||||||
throw new UncheckedIOException(
|
throw new UncheckedIOException(
|
||||||
"Error during localization setup", e);
|
"Error during localization setup", e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user