public class TestWALLockup
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
TestName |
name |
protected TableName |
tableName |
| Constructor and Description |
|---|
TestWALLockup() |
| Modifier and Type | Method and Description |
|---|---|
HRegion |
initHRegion(TableName tableName,
byte[] startKey,
byte[] stopKey,
WAL wal) |
void |
setup() |
void |
tearDown() |
void |
testLockup16960()
Reproduce locking up that happens when there's no further syncs after
append fails, and causing an isolated sync then infinite wait.
|
void |
testLockupWhenSyncInMiddleOfZigZagSetup()
Reproduce locking up that happens when we get an inopportune sync during setup for
zigzaglatch wait.
|
public void setup()
throws java.io.IOException
java.io.IOExceptionpublic void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testLockupWhenSyncInMiddleOfZigZagSetup()
throws java.io.IOException
First I need to set up some mocks for Server and RegionServerServices. I also need to set up a dodgy WAL that will throw an exception when we go to append to it.
java.io.IOExceptionpublic void testLockup16960()
throws java.io.IOException
DummyWALActionsListener to dodgyWAL2 to cause ringbuffer
event handler thread sleep for a while thus keeping endOfBatch
falsejava.io.IOExceptionpublic HRegion initHRegion(TableName tableName,
byte[] startKey,
byte[] stopKey,
WAL wal)
throws java.io.IOException
HBaseTestingUtility#closeRegionAndWAL(HRegion) when done.java.io.IOException