HBASE-9022 TestHLogSplit.testIOEOnOutputThread fails; DEBUGGING
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1506782 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2e13c675d5
commit
de13130472
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue