Author: jdcryans
Date: Wed Dec 22 00:19:14 2010
New Revision: 1051712

URL: http://svn.apache.org/viewvc?rev=1051712&view=rev
Log:
HBASE-3323 was missing the EOF handling

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

Modified: 
hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
URL: 
http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java?rev=1051712&r1=1051711&r2=1051712&view=diff
==============================================================================
--- 
hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
 (original)
+++ 
hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
 Wed Dec 22 00:19:14 2010
@@ -259,6 +259,10 @@ public class HLogSplitter {
           recoverFileLease(fs, logPath, conf);
           parseHLog(log, entryBuffers, fs, conf);
           processedLogs.add(logPath);
+        } catch (EOFException eof) {
+          // truncated files are expected if a RS crashes (see HBASE-2643)
+          LOG.info("EOF from hlog " + logPath + ".  continuing");
+          processedLogs.add(logPath);
         } catch (IOException e) {
           // If the IOE resulted from bad file format,
           // then this problem is idempotent and retrying won't help


Reply via email to