YARN-4158. Remove duplicate close for LogWriter in AppLogAggregatorImpl#uploadLogsForContainers. Contributed by Zhihai Xu

(cherry picked from commit 8c1cdb17a0)
This commit is contained in:
Jason Lowe 2015-09-15 20:21:33 +00:00
parent ca6d5b4b92
commit 30ebb792f9
2 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,9 @@ Release 2.7.2 - UNRELEASED
YARN-4153. TestAsyncDispatcher failed at branch-2.7 (Zhihai Xu via jianhe) YARN-4153. TestAsyncDispatcher failed at branch-2.7 (Zhihai Xu via jianhe)
YARN-4158. Remove duplicate close for LogWriter in
AppLogAggregatorImpl#uploadLogsForContainers (Zhihai Xu via jlowe)
Release 2.7.1 - 2015-07-06 Release 2.7.1 - 2015-07-06
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -290,6 +290,7 @@ public class AppLogAggregatorImpl implements AppLogAggregator {
if (writer != null) { if (writer != null) {
writer.close(); writer.close();
writer = null;
} }
final Path renamedPath = this.rollingMonitorInterval <= 0 final Path renamedPath = this.rollingMonitorInterval <= 0