HBASE-1132 Can't append to HLog, can't roll log, infinite cycle (another spin on HBASE-930)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@735555 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-01-18 22:04:24 +00:00
parent 5cc3e796fd
commit 029b37eade
2 changed files with 9 additions and 3 deletions

View File

@ -145,6 +145,8 @@ Release 0.19.0 - Unreleased
not already marked as pending close
HBASE-1124 Balancer kicks in way too early
HBASE-1127 OOME running randomRead PE
HBASE-1132 Can't append to HLog, can't roll log, infinite cycle (another
spin on HBASE-930)
IMPROVEMENTS
HBASE-901 Add a limit to key length, check key and value length on client side

View File

@ -68,14 +68,18 @@ class LogRoller extends Thread implements LogRollListener {
}
} catch (FailedLogCloseException e) {
LOG.fatal("Forcing server shutdown", e);
server.checkFileSystem();
server.abort();
} catch (java.net.ConnectException e) {
LOG.fatal("Forcing server shutdown", e);
server.checkFileSystem();
server.abort();
} catch (IOException ex) {
LOG.error("Log rolling failed with ioe: ",
RemoteExceptionHandler.checkIOException(ex));
LOG.fatal("Log rolling failed with ioe: ",
RemoteExceptionHandler.checkIOException(ex));
server.checkFileSystem();
// Abort if we get here. We probably won't recover an IOE. HBASE-1132
server.abort();
} catch (Exception ex) {
LOG.error("Log rolling failed", ex);
server.checkFileSystem();
@ -123,4 +127,4 @@ class LogRoller extends Thread implements LogRollListener {
rollLock.unlock();
}
}
}
}