From cd807c9890baf0778d782f8ed5f036b5f78b29d5 Mon Sep 17 00:00:00 2001 From: Mukul Kumar Singh Date: Mon, 12 Feb 2018 14:00:53 +0530 Subject: [PATCH] HDFS-13133. Ozone: OzoneFileSystem: Calling delete with non-existing path shouldn't be logged on ERROR level. Contributed by Elek, Marton. --- .../main/java/org/apache/hadoop/fs/ozone/OzoneFileSystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-tools/hadoop-ozone/src/main/java/org/apache/hadoop/fs/ozone/OzoneFileSystem.java b/hadoop-tools/hadoop-ozone/src/main/java/org/apache/hadoop/fs/ozone/OzoneFileSystem.java index 485f2c076a..34d6d3a100 100644 --- a/hadoop-tools/hadoop-ozone/src/main/java/org/apache/hadoop/fs/ozone/OzoneFileSystem.java +++ b/hadoop-tools/hadoop-ozone/src/main/java/org/apache/hadoop/fs/ozone/OzoneFileSystem.java @@ -410,7 +410,7 @@ public boolean delete(Path f, boolean recursive) throws IOException { DeleteIterator iterator = new DeleteIterator(f, recursive); return iterator.iterate(); } catch (FileNotFoundException e) { - LOG.error("Couldn't delete {} - does not exist", f); + LOG.debug("Couldn't delete {} - does not exist", f); return false; } }