Class TestRegionServerRejectDuringAbort
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerRejectDuringAbort
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static byte[]
static final HBaseClassTestRule
private static final org.slf4j.Logger
private static final int
private static boolean
private static org.apache.hadoop.hbase.TableName
private static final AtomicReference<Exception>
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
Tests that the logic in ServerRpcConnection works such that if the server is aborted, it short circuits any other logic.
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
TABLE_NAME
-
CF
-
REGIONS_NUM
- See Also:
-
THROWN_EXCEPTION
-
shouldThrowTooBig
-
-
Constructor Details
-
TestRegionServerRejectDuringAbort
public TestRegionServerRejectDuringAbort()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testRejectRequestsOnAbort
Tests that the logic in ServerRpcConnection works such that if the server is aborted, it short circuits any other logic. This means we no longer even attempt to enqueue the request onto the call queue. We verify this by using a special call queue which we can trigger to always return CallQueueTooBigException. If the logic works, despite forcing those exceptions, we should not see them.- Throws:
Exception
-
getWriterThreadRunnable
-
submitRequestsToRegion
private void submitRequestsToRegion(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.RegionInfo regionInfo) throws IOException - Throws:
IOException
-
getRowKeyWithin
-