Package org.apache.hadoop.hbase.client
Class AbstractTestAsyncTableRegionReplicasRead
java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestAsyncTableRegionReplicasRead
- Direct Known Subclasses:
TestAsyncTableRegionReplicasGet
,TestAsyncTableRegionReplicasScan
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.hadoop.hbase.client.AsyncConnection
protected static boolean
protected static byte[]
Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>>
protected static byte[]
protected static int
protected static ConcurrentMap<Integer,
AtomicInteger> protected static byte[]
protected static org.apache.hadoop.hbase.TableName
protected static final HBaseTestingUtility
org.junit.rules.TestName
protected static byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
allReplicasHaveRow
(byte[] row) protected static int
private static org.apache.hadoop.hbase.client.AsyncTable<?>
protected static int
private static org.apache.hadoop.hbase.client.AsyncTable<?>
getTable()
params()
protected abstract void
readAndCheck
(org.apache.hadoop.hbase.client.AsyncTable<?> table, int replicaId) protected static void
static void
void
void
void
protected static void
waitUntilAllReplicasHaveRow
(byte[] row)
-
Field Details
-
TEST_UTIL
-
TABLE_NAME
-
FAMILY
-
QUALIFIER
-
ROW
-
VALUE
-
REPLICA_COUNT
-
ASYNC_CONN
-
testName
-
getTable
-
FAIL_PRIMARY_GET
-
REPLICA_ID_TO_COUNT
-
-
Constructor Details
-
AbstractTestAsyncTableRegionReplicasRead
-
-
Method Details
-
getRawTable
-
getTable
-
params
-
allReplicasHaveRow
- Throws:
IOException
-
startClusterAndCreateTable
- Throws:
Exception
-
waitUntilAllReplicasHaveRow
- Throws:
IOException
-
tearDownAfterClass
- Throws:
Exception
-
getSecondaryGetCount
-
getPrimaryGetCount
-
readAndCheck
protected abstract void readAndCheck(org.apache.hadoop.hbase.client.AsyncTable<?> table, int replicaId) throws Exception - Throws:
Exception
-
testNoReplicaRead
- Throws:
Exception
-
testReplicaRead
- Throws:
Exception
-
testReadSpecificReplica
- Throws:
Exception
-