public class TestWALLockup extends 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 TestName name
protected TableName tableName
public void setup()
throws IOException
IOExceptionpublic void testLockupWhenSyncInMiddleOfZigZagSetup()
throws 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.
IOExceptionpublic void testLockup16960()
throws IOException
DummyWALActionsListener to dodgyWAL2 to cause ringbuffer
event handler thread sleep for a while thus keeping endOfBatch
falseIOExceptionpublic HRegion initHRegion(TableName tableName, byte[] startKey, byte[] stopKey, WAL wal) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion) when done.IOException