YARN-4773. Log aggregation performs extraneous filesystem operations when rolling log aggregation is disabled. Contributed by Jun Gong

This commit is contained in:
Jason Lowe 2016-04-05 13:51:46 +00:00
parent fc0ffc48d4
commit 49428ab6bb
2 changed files with 4 additions and 1 deletions

View File

@ -115,6 +115,9 @@ Release 2.7.3 - UNRELEASED
YARN-4183. Clarify the behavior of timeline service config properties
(Naganarasimha G R via sjlee)
YARN-4773. Log aggregation performs extraneous filesystem operations when
rolling log aggregation is disabled (Jun Gong via jlowe)
Release 2.7.2 - 2016-01-25
INCOMPATIBLE CHANGES

View File

@ -284,7 +284,7 @@ public class AppLogAggregatorImpl implements AppLogAggregator {
// Before upload logs, make sure the number of existing logs
// is smaller than the configured NM log aggregation retention size.
if (uploadedLogsInThisCycle) {
if (uploadedLogsInThisCycle && logAggregationInRolling) {
cleanOldLogs();
}