HBASE-8712 HFileLinkCleaner (FSUtils.listStatus) logs too much if

links do not exists (Matteo via JD)


git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1490871 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2013-06-07 23:49:09 +00:00
parent 6607d02230
commit f8a2ae4199
1 changed files with 3 additions and 1 deletions

View File

@ -1530,7 +1530,9 @@ public abstract class FSUtils {
status = filter == null ? fs.listStatus(dir) : fs.listStatus(dir, filter);
} catch (FileNotFoundException fnfe) {
// if directory doesn't exist, return null
LOG.debug(dir + " doesn't exist");
if (LOG.isTraceEnabled()) {
LOG.trace(dir + " doesn't exist");
}
}
if (status == null || status.length < 1) return null;
return status;