HBASE-930 RegionServer stuck: HLog: Could not append. Requesting close of log java.io.IOException: Could not get block locations. Aborting...; fix java 1.6ism

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/branches/0.18@705107 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-10-16 00:46:48 +00:00
parent 8dcc95d790
commit 1f66d54b5d
2 changed files with 5 additions and 10 deletions

View File

@ -35,12 +35,4 @@ class FailedLogCloseException extends IOException {
public FailedLogCloseException(String arg0) {
super(arg0);
}
public FailedLogCloseException(Throwable arg0) {
super(arg0);
}
public FailedLogCloseException(String arg0, Throwable arg1) {
super(arg0, arg1);
}
}
}

View File

@ -244,7 +244,10 @@ public class HLog implements HConstants {
// Failed close of log file. Means we're losing edits. For now,
// shut ourselves down to minimize loss. Alternative is to try and
// keep going. See HBASE-930.
throw new FailedLogCloseException("#" + this.filenum, e);
FailedLogCloseException flce =
new FailedLogCloseException("#" + this.filenum);
flce.initCause(e);
throw flce;
}
Path p = computeFilename(old_filenum);
if (LOG.isDebugEnabled()) {