From ca7dd5fad331e3942547b88fdc4c0ad59865a71a Mon Sep 17 00:00:00 2001 From: lzx404243 Date: Tue, 12 Jan 2021 00:45:13 -0600 Subject: [PATCH] MAPREDUCE-7310. Clear the fileMap in JHEventHandlerForSigtermTest (#2499) Co-authored-by: Zhengxi Li Reviewed-by: Wanqiang Ji Signed-off-by: Akira Ajisaka --- .../hadoop/mapreduce/jobhistory/TestJobHistoryEventHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/jobhistory/TestJobHistoryEventHandler.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/jobhistory/TestJobHistoryEventHandler.java index c9a7d2d0831..fbeb94a2a16 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/jobhistory/TestJobHistoryEventHandler.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test/java/org/apache/hadoop/mapreduce/jobhistory/TestJobHistoryEventHandler.java @@ -1119,6 +1119,7 @@ class JHEvenHandlerForTest extends JobHistoryEventHandler { class JHEventHandlerForSigtermTest extends JobHistoryEventHandler { public JHEventHandlerForSigtermTest(AppContext context, int startCount) { super(context, startCount); + JobHistoryEventHandler.fileMap.clear(); } public void addToFileMap(JobId jobId) {