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 |
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
IOException
public 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.
IOException
public HRegion initHRegion(TableName tableName, byte[] startKey, byte[] stopKey, WAL wal) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion)
when done.IOException