YARN-3237. AppLogAggregatorImpl fails to log error cause. Contributed by

Rushabh S Shah
This commit is contained in:
Xuan 2015-02-20 14:02:40 -08:00
parent 3c5ff0759c
commit f56c65bb3e
2 changed files with 5 additions and 2 deletions

View File

@ -312,6 +312,9 @@ Release 2.7.0 - UNRELEASED
YARN-3230. Clarify application states on the web UI. (Jian He via wangda) YARN-3230. Clarify application states on the web UI. (Jian He via wangda)
YARN-3237. AppLogAggregatorImpl fails to log error cause.
(Rushabh S Shah via xgong)
OPTIMIZATIONS OPTIMIZATIONS
YARN-2990. FairScheduler's delay-scheduling always waits for node-local and YARN-2990. FairScheduler's delay-scheduling always waits for node-local and

View File

@ -248,7 +248,7 @@ private void uploadLogsForContainers() {
} catch (IOException e1) { } catch (IOException e1) {
LOG.error("Cannot create writer for app " + this.applicationId LOG.error("Cannot create writer for app " + this.applicationId
+ ". Skip log upload this time. "); + ". Skip log upload this time. ", e1);
return; return;
} }
@ -549,7 +549,7 @@ public Set<Path> doContainerLogAggregation(LogWriter writer) {
writer.append(logKey, logValue); writer.append(logKey, logValue);
} catch (Exception e) { } catch (Exception e) {
LOG.error("Couldn't upload logs for " + containerId LOG.error("Couldn't upload logs for " + containerId
+ ". Skipping this container."); + ". Skipping this container.", e);
return new HashSet<Path>(); return new HashSet<Path>();
} }
this.uploadedFileMeta.addAll(logValue this.uploadedFileMeta.addAll(logValue