hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1051707 - /hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
Date Wed, 22 Dec 2010 00:14:00 GMT
Author: jdcryans
Date: Wed Dec 22 00:14:00 2010
New Revision: 1051707

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

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

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java?rev=1051707&r1=1051706&r2=1051707&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
(original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
Wed Dec 22 00:14:00 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



Mime
View raw message