HDFS-13133. Ozone: OzoneFileSystem: Calling delete with non-existing path shouldn't be logged on ERROR level. Contributed by Elek, Marton.

This commit is contained in:
Mukul Kumar Singh 2018-02-12 14:00:53 +05:30 committed by Owen O'Malley
parent 9272e1021d
commit cd807c9890

View File

@ -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;
}
}