public class TestWALLockup extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
org.junit.rules.TestName |
name |
protected TableName |
tableName |
| Constructor and Description |
|---|
TestWALLockup() |
| Modifier and Type | Method and Description |
|---|---|
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
public org.junit.rules.TestName name
public TestWALLockup()
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 testRingBufferEventHandlerStuckWhenSyncFailed() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2019 Cloudera. All rights reserved.