hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r730233 - /hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HStore.java
Date Tue, 30 Dec 2008 20:40:43 GMT
Author: stack
Date: Tue Dec 30 12:40:43 2008
New Revision: 730233

URL: http://svn.apache.org/viewvc?rev=730233&view=rev
Log:
HBASE-1092 FileNotFoundException trying to get index file size for metrics; part 1

Modified:
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HStore.java

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HStore.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HStore.java?rev=730233&r1=730232&r2=730233&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HStore.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HStore.java Tue Dec 30
12:40:43 2008
@@ -558,8 +558,7 @@
    */
   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;
   }
 
   /**



Mime
View raw message