YARN-3237. AppLogAggregatorImpl fails to log error cause. Contributed by
Rushabh S Shah
(cherry picked from commit f56c65bb3e
)
This commit is contained in:
parent
187e081d5a
commit
9cbe9bcbaa
|
@ -276,6 +276,9 @@ Release 2.7.0 - UNRELEASED
|
|||
|
||||
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
|
||||
|
||||
YARN-2990. FairScheduler's delay-scheduling always waits for node-local and
|
||||
|
|
|
@ -248,7 +248,7 @@ public class AppLogAggregatorImpl implements AppLogAggregator {
|
|||
|
||||
} catch (IOException e1) {
|
||||
LOG.error("Cannot create writer for app " + this.applicationId
|
||||
+ ". Skip log upload this time. ");
|
||||
+ ". Skip log upload this time. ", e1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -549,7 +549,7 @@ public class AppLogAggregatorImpl implements AppLogAggregator {
|
|||
writer.append(logKey, logValue);
|
||||
} catch (Exception e) {
|
||||
LOG.error("Couldn't upload logs for " + containerId
|
||||
+ ". Skipping this container.");
|
||||
+ ". Skipping this container.", e);
|
||||
return new HashSet<Path>();
|
||||
}
|
||||
this.uploadedFileMeta.addAll(logValue
|
||||
|
|
Loading…
Reference in New Issue