Class TestRegionServerRejectDuringAbort
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerRejectDuringAbort
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static byte[]static final HBaseClassTestRuleprivate static final org.slf4j.Loggerprivate static final intprivate static booleanprivate static org.apache.hadoop.hbase.TableNameprivate static final AtomicReference<Exception>private static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]getRowKeyWithin(org.apache.hadoop.hbase.client.RegionInfo regionInfo) private RunnablegetWriterThreadRunnable(org.apache.hadoop.hbase.ServerName loadServer) static voidsetUp()private voidsubmitRequestsToRegion(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.RegionInfo regionInfo) static voidtearDown()voidTests 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
-