public abstract class AbstractTestAsyncTableRegionReplicasRead extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractTestAsyncTableRegionReplicasRead.FailPrimaryGetCP |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.hadoop.hbase.client.AsyncConnection |
ASYNC_CONN |
protected static boolean |
FAIL_PRIMARY_GET |
protected static byte[] |
FAMILY |
Supplier<org.apache.hadoop.hbase.client.AsyncTable<?>> |
getTable |
protected static byte[] |
QUALIFIER |
protected static int |
REPLICA_COUNT |
protected static ConcurrentMap<Integer,AtomicInteger> |
REPLICA_ID_TO_COUNT |
protected static byte[] |
ROW |
protected static org.apache.hadoop.hbase.TableName |
TABLE_NAME |
protected static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
protected static byte[] |
VALUE |
Constructor and Description |
---|
AbstractTestAsyncTableRegionReplicasRead() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
allReplicasHaveRow(byte[] row) |
protected static int |
getPrimaryGetCount() |
private static org.apache.hadoop.hbase.client.AsyncTable<?> |
getRawTable() |
protected static int |
getSecondaryGetCount() |
private static org.apache.hadoop.hbase.client.AsyncTable<?> |
getTable() |
static List<Object[]> |
params() |
protected abstract void |
readAndCheck(org.apache.hadoop.hbase.client.AsyncTable<?> table,
int replicaId) |
protected static void |
startClusterAndCreateTable() |
static void |
tearDownAfterClass() |
void |
testNoReplicaRead() |
void |
testReadSpecificReplica() |
void |
testReplicaRead() |
protected static void |
waitUntilAllReplicasHaveRow(byte[] row) |
protected static final HBaseTestingUtility TEST_UTIL
protected static org.apache.hadoop.hbase.TableName TABLE_NAME
protected static byte[] FAMILY
protected static byte[] QUALIFIER
protected static byte[] ROW
protected static byte[] VALUE
protected static int REPLICA_COUNT
protected static org.apache.hadoop.hbase.client.AsyncConnection ASYNC_CONN
public org.junit.rules.TestName testName
protected static volatile boolean FAIL_PRIMARY_GET
protected static ConcurrentMap<Integer,AtomicInteger> REPLICA_ID_TO_COUNT
public AbstractTestAsyncTableRegionReplicasRead()
private static org.apache.hadoop.hbase.client.AsyncTable<?> getRawTable()
private static org.apache.hadoop.hbase.client.AsyncTable<?> getTable()
private static boolean allReplicasHaveRow(byte[] row) throws IOException
IOException
protected static void startClusterAndCreateTable() throws Exception
Exception
protected static void waitUntilAllReplicasHaveRow(byte[] row) throws IOException
IOException
public static void tearDownAfterClass() throws Exception
Exception
protected static int getSecondaryGetCount()
protected static int getPrimaryGetCount()
protected abstract void readAndCheck(org.apache.hadoop.hbase.client.AsyncTable<?> table, int replicaId) throws Exception
Exception
public void testNoReplicaRead() throws Exception
Exception
public void testReplicaRead() throws Exception
Exception
public void testReadSpecificReplica() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.