YARN-6068. Log aggregation get failed when NM restart even with recovery (Junping Du via Varun Saxena)

(cherry picked from commit f59e36b4ce)
This commit is contained in:
Varun Saxena 2017-01-09 11:17:19 +05:30
parent e7ad66b55b
commit fedcce2f4c
1 changed files with 2 additions and 2 deletions

View File

@ -513,8 +513,8 @@ public class AppLogAggregatorImpl implements AppLogAggregator {
+ appId, e); + appId, e);
doAppLogAggregationPostCleanUp(); doAppLogAggregationPostCleanUp();
} finally { } finally {
if (!this.appAggregationFinished.get()) { if (!this.appAggregationFinished.get() && !this.aborted.get()) {
LOG.warn("Aggregation did not complete for application " + appId); LOG.warn("Log aggregation did not complete for application " + appId);
this.dispatcher.getEventHandler().handle( this.dispatcher.getEventHandler().handle(
new ApplicationEvent(this.appId, new ApplicationEvent(this.appId,
ApplicationEventType.APPLICATION_LOG_HANDLING_FAILED)); ApplicationEventType.APPLICATION_LOG_HANDLING_FAILED));