From e99a1e77671fa0e74a652bc2221bbe01d1a579d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gergely=20Nov=C3=A1k?= Date: Fri, 2 Mar 2018 16:15:04 -0800 Subject: [PATCH] MAPREDUCE-7023. TestHadoopArchiveLogs.testCheckFilesAndSeedApps fails on rerun Signed-off-by: Akira Ajisaka --- .../java/org/apache/hadoop/tools/TestHadoopArchiveLogs.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-tools/hadoop-archive-logs/src/test/java/org/apache/hadoop/tools/TestHadoopArchiveLogs.java b/hadoop-tools/hadoop-archive-logs/src/test/java/org/apache/hadoop/tools/TestHadoopArchiveLogs.java index 5b6062bd75..423f3f1d5b 100644 --- a/hadoop-tools/hadoop-archive-logs/src/test/java/org/apache/hadoop/tools/TestHadoopArchiveLogs.java +++ b/hadoop-tools/hadoop-archive-logs/src/test/java/org/apache/hadoop/tools/TestHadoopArchiveLogs.java @@ -61,6 +61,8 @@ public void testCheckFilesAndSeedApps() throws Exception { Path rootLogDir = new Path("target", "logs"); String suffix = "logs"; Path logDir = new Path(rootLogDir, new Path(USER, suffix)); + fs.delete(logDir, true); + Assert.assertFalse(fs.exists(logDir)); fs.mkdirs(logDir); // no files found