hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1506782 - in /hbase/trunk/hbase-server/src: main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLogSplit.java
Date Wed, 24 Jul 2013 23:55:42 GMT
Author: stack
Date: Wed Jul 24 23:55:41 2013
New Revision: 1506782

URL: http://svn.apache.org/r1506782
Log:
HBASE-9022 TestHLogSplit.testIOEOnOutputThread fails; DEBUGGING

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
    hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLogSplit.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java?rev=1506782&r1=1506781&r2=1506782&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
Wed Jul 24 23:55:41 2013
@@ -607,7 +607,7 @@ public class HLogSplitter {
     Throwable thrown = this.thrown.get();
     if (thrown == null) return;
     if (thrown instanceof IOException) {
-      throw (IOException)thrown;
+      throw new IOException(thrown);
     } else {
       throw new RuntimeException(thrown);
     }
@@ -790,7 +790,7 @@ public class HLogSplitter {
       try {
         doRun();
       } catch (Throwable t) {
-        LOG.error("Error in log splitting write thread", t);
+        LOG.error("Exiting thread", t);
         writerThreadError(t);
       }
     }

Modified: hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLogSplit.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLogSplit.java?rev=1506782&r1=1506781&r2=1506782&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLogSplit.java
(original)
+++ hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/TestHLogSplit.java
Wed Jul 24 23:55:41 2013
@@ -810,6 +810,8 @@ public class TestHLogSplit {
         return mockWriter;
       }
     };
+    // Start up background thread that will thread dump if we are stuck here.
+    Threads.threadDumpingIsAlive(Thread.currentThread());
     try {
       logSplitter.splitLogFile(logfiles[0], null);
       fail("Didn't throw!");



Mime
View raw message