YARN-4773. Log aggregation performs extraneous filesystem operations when rolling log aggregation is disabled. Contributed by Jun Gong
This commit is contained in:
parent
fc0ffc48d4
commit
49428ab6bb
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue