HBASE-1092 FileNotFoundException trying to get index file size for metrics; part 1
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@730233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
127491e583
commit
22d184218d
|
@ -558,8 +558,7 @@ public class HStore implements HConstants {
|
|||
*/
|
||||
private boolean isEmptyFile(final Path f)
|
||||
throws IOException {
|
||||
return this.fs.exists(f) &&
|
||||
this.fs.getFileStatus(f).getLen() == 0;
|
||||
return !this.fs.exists(f) || this.fs.getFileStatus(f).getLen() == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue