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:
parent
9272e1021d
commit
cd807c9890
@ -410,7 +410,7 @@ public boolean delete(Path f, boolean recursive) throws IOException {
|
|||||||
DeleteIterator iterator = new DeleteIterator(f, recursive);
|
DeleteIterator iterator = new DeleteIterator(f, recursive);
|
||||||
return iterator.iterate();
|
return iterator.iterate();
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
LOG.error("Couldn't delete {} - does not exist", f);
|
LOG.debug("Couldn't delete {} - does not exist", f);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user