Selaa lähdekoodia

YARN-11204. Various MapReduce tests fail with NPE in AggregatedLogDeletionService.stopRMClient. Contributed by Szilard Nemeth.

9uapaw 2 vuotta sitten
vanhempi
commit
2d133a54ac

+ 1 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/logaggregation/AggregatedLogDeletionService.java

@@ -59,7 +59,7 @@ public class AggregatedLogDeletionService extends AbstractService {
   
   private Timer timer = null;
   private long checkIntervalMsecs;
-  private List<LogDeletionTask> tasks;
+  private List<LogDeletionTask> tasks = new ArrayList<>();
   
   public static class LogDeletionTask extends TimerTask {
     private Configuration conf;