public class TestWALLockup extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
TestWALLockup.DodgyFSLog |
(package private) static class |
TestWALLockup.DummyServer |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String |
COLUMN_FAMILY |
private static byte[] |
COLUMN_FAMILY_BYTES |
private static org.apache.hadoop.conf.Configuration |
CONF |
private String |
dir |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
(package private) org.apache.hadoop.hbase.regionserver.HRegion |
region |
protected org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestWALLockup() |
Modifier and Type | Method and Description |
---|---|
private String |
getName() |
private static org.apache.hadoop.hbase.regionserver.HRegion |
initHRegion(org.apache.hadoop.hbase.TableName tableName,
byte[] startKey,
byte[] stopKey,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.wal.WAL wal) |
void |
setup() |
void |
tearDown() |
void |
testLockupWhenSyncInMiddleOfZigZagSetup()
Reproduce locking up that happens when we get an inopportune sync during setup for zigzaglatch
wait.
|
void |
testRingBufferEventHandlerStuckWhenSyncFailed()
If below is broken, we will see this test timeout because RingBufferEventHandler was stuck in
attainSafePoint.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName name
private static final String COLUMN_FAMILY
private static final byte[] COLUMN_FAMILY_BYTES
org.apache.hadoop.hbase.regionserver.HRegion region
private static HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.conf.Configuration CONF
protected org.apache.hadoop.hbase.TableName tableName
public TestWALLockup()
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 void testRingBufferEventHandlerStuckWhenSyncFailed() throws IOException, InterruptedException
IOException
InterruptedException
private static org.apache.hadoop.hbase.regionserver.HRegion initHRegion(org.apache.hadoop.hbase.TableName tableName, byte[] startKey, byte[] stopKey, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.wal.WAL wal) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion)
when done.IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.