From b7f7d42c273622cad2d69be6bc0ae65c1715b530 Mon Sep 17 00:00:00 2001 From: Robert Kanter Date: Thu, 27 Oct 2016 12:37:01 -0700 Subject: [PATCH] YARN-4456. Clean up Lint warnings in nodemanager (templedf via rkanter) (cherry picked from commit 6fbfb501f2e27045da5ce8f48dde881b29328b4a) --- .../logaggregation/TestLogAggregationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java index 1edb841f116..b9d18a3f22b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestLogAggregationService.java @@ -2138,7 +2138,7 @@ public class TestLogAggregationService extends BaseContainerManagerTest { ApplicationEventType.APPLICATION_LOG_HANDLING_INITED) }; checkEvents(appEventHandler, expectedInitEvents, false, "getType", "getApplicationID"); - reset(appEventHandler); + reset(new EventHandler[] {appEventHandler}); logAggregationService.handle(new LogHandlerAppFinishedEvent(appId)); logAggregationService.stop();