YARN-9749. TestAppLogAggregatorImpl#testDFSQuotaExceeded fails on trunk. Contributed by Adam Antal

This commit is contained in:
Szilard Nemeth 2019-08-16 08:52:09 +02:00
parent bf3751521b
commit 2a05e0ff3b
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ public class AppLogAggregatorImpl implements AppLogAggregator {
if (logAggregationSucceedInThisCycle && deletionTask != null) { if (logAggregationSucceedInThisCycle && deletionTask != null) {
delService.delete(deletionTask); delService.delete(deletionTask);
} }
if (!diagnosticMessage.isEmpty()) { if (diagnosticMessage != null && !diagnosticMessage.isEmpty()) {
LOG.debug("Sending log aggregation report along with the " + LOG.debug("Sending log aggregation report along with the " +
"following diagnostic message:\"{}\"", diagnosticMessage); "following diagnostic message:\"{}\"", diagnosticMessage);
} }