public class TestRegionServerRejectDuringAbort extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestRegionServerRejectDuringAbort.CallQueueTooBigThrowingQueue |
static class |
TestRegionServerRejectDuringAbort.SleepWhenCloseCoprocessor |
Modifier and Type | Field and Description |
---|---|
private static byte[] |
CF |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static int |
REGIONS_NUM |
private static boolean |
shouldThrowTooBig |
private static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
private static AtomicReference<Exception> |
THROWN_EXCEPTION |
private static HBaseTestingUtil |
UTIL |
Constructor and Description |
---|
TestRegionServerRejectDuringAbort() |
Modifier and Type | Method and Description |
---|---|
private byte[] |
getRowKeyWithin(org.apache.hadoop.hbase.client.RegionInfo regionInfo) |
private Runnable |
getWriterThreadRunnable(org.apache.hadoop.hbase.ServerName loadServer) |
static void |
setUp() |
private void |
submitRequestsToRegion(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.client.RegionInfo regionInfo) |
static void |
tearDown() |
void |
testRejectRequestsOnAbort()
Tests that the logic in ServerRpcConnection works such that if the server is aborted, it short
circuits any other logic.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtil UTIL
private static org.apache.hadoop.hbase.TableName TABLE_NAME
private static byte[] CF
private static final int REGIONS_NUM
private static final AtomicReference<Exception> THROWN_EXCEPTION
private static volatile boolean shouldThrowTooBig
public TestRegionServerRejectDuringAbort()
public void testRejectRequestsOnAbort() throws Exception
Exception
private Runnable getWriterThreadRunnable(org.apache.hadoop.hbase.ServerName loadServer)
private void submitRequestsToRegion(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException
IOException
private byte[] getRowKeyWithin(org.apache.hadoop.hbase.client.RegionInfo regionInfo)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.