hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r705136 - in /hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver: FailedLogCloseException.java HLog.java
Date Thu, 16 Oct 2008 04:19:29 GMT
Author: stack
Date: Wed Oct 15 21:19:28 2008
New Revision: 705136

URL: http://svn.apache.org/viewvc?rev=705136&view=rev
Log:
HBASE-930 RegionServer stuck: HLog: Could not append. Requesting close of log java.io.IOException:
Could not get block locations. Aborting...; WRONG - not a  java 1.6ism

Modified:
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java?rev=705136&r1=705135&r2=705136&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java
(original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/FailedLogCloseException.java
Wed Oct 15 21:19:28 2008
@@ -35,12 +35,4 @@
   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
+}

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java?rev=705136&r1=705135&r2=705136&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/HLog.java Wed Oct 15
21:19:28 2008
@@ -244,7 +244,10 @@
             // 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, e);
+            flce.initCause(e):
+            throw e; 
           }
           Path p = computeFilename(old_filenum);
           if (LOG.isDebugEnabled()) {



Mime
View raw message