HBASE-3323 was missing the EOF handling

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1051712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2010-12-22 00:19:14 +00:00
parent bc8d7005b1
commit 15ef67afe5
1 changed files with 4 additions and 0 deletions

View File

@ -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