hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1201940 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
Date Mon, 14 Nov 2011 22:29:03 GMT
Author: nspiegelberg
Date: Mon Nov 14 22:29:03 2011
New Revision: 1201940

URL: http://svn.apache.org/viewvc?rev=1201940&view=rev
Log:
HBASE-4778 Don't ignore corrupt StoreFiles when opening a region

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

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java?rev=1201940&r1=1201939&r2=1201940&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java Mon Nov 14 22:29:03
2011
@@ -273,17 +273,9 @@ public class Store implements HeapSize {
         LOG.warn("Skipping " + p + " because its empty. HBASE-646 DATA LOSS?");
         continue;
       }
-      StoreFile curfile = null;
-      try {
-        curfile = new StoreFile(fs, p, this.conf, this.cacheConf,
-            this.family.getBloomFilterType());
-        curfile.createReader();
-      } catch (IOException ioe) {
-        LOG.warn("Failed open of " + p + "; presumption is that file was " +
-          "corrupted at flush and lost edits picked up by commit log replay. " +
-          "Verify!", ioe);
-        continue;
-      }
+      StoreFile curfile = new StoreFile(fs, p, this.conf, this.cacheConf,
+          this.family.getBloomFilterType());
+      curfile.createReader();
       long length = curfile.getReader().length();
       this.storeSize += length;
       this.totalUncompressedBytes += curfile.getReader().getTotalUncompressedBytes();



Mime
View raw message