diff --git a/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java b/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java index 8df720b480f..cd2dfaf2e75 100644 --- a/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java +++ b/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java @@ -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); - } -} \ No newline at end of file +} diff --git a/src/java/org/apache/hadoop/hbase/regionserver/HLog.java b/src/java/org/apache/hadoop/hbase/regionserver/HLog.java index e074d305cf6..90a60c2d867 100644 --- a/src/java/org/apache/hadoop/hbase/regionserver/HLog.java +++ b/src/java/org/apache/hadoop/hbase/regionserver/HLog.java @@ -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()) {