public class TestRpcBasedRegistryHedgedReads extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestRpcBasedRegistryHedgedReads.RpcChannelImpl
A dummy RpcChannel implementation that intercepts the GetClusterId() RPC calls and injects
errors.
|
static class |
TestRpcBasedRegistryHedgedReads.RpcClientImpl |
Modifier and Type | Field and Description |
---|---|
private static int |
BAD_RESP_INDEX |
private static Set<org.apache.hadoop.hbase.ServerName> |
BOOTSTRAP_NODES |
private static AtomicInteger |
CALLED |
static HBaseClassTestRule |
CLASS_RULE |
private static ExecutorService |
EXECUTOR |
private static Set<Integer> |
GOOD_RESP_INDEXS |
private static String |
HEDGED_REQS_FANOUT_CONFIG_NAME |
private static String |
INITIAL_DELAY_SECS_CONFIG_NAME |
private static org.slf4j.Logger |
LOG |
private static String |
MIN_REFRESH_INTERVAL_SECS_CONFIG_NAME |
private static String |
REFRESH_INTERVAL_SECS_CONFIG_NAME |
private static org.apache.hadoop.hbase.shaded.protobuf.generated.RegistryProtos.GetClusterIdResponse |
RESP |
private static HBaseCommonTestingUtility |
UTIL |
Constructor and Description |
---|
TestRpcBasedRegistryHedgedReads() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistry |
createRegistry(int hedged) |
private <T> T |
logIfError(CompletableFuture<T> future) |
void |
setUp() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testAllFailHedged3() |
void |
testAllFailNoHedged() |
void |
testFirstSucceededNoHedge() |
void |
testSecondRoundSucceededHedge4() |
void |
testSucceededWithLargestHedged() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final String HEDGED_REQS_FANOUT_CONFIG_NAME
private static final String INITIAL_DELAY_SECS_CONFIG_NAME
private static final String REFRESH_INTERVAL_SECS_CONFIG_NAME
private static final String MIN_REFRESH_INTERVAL_SECS_CONFIG_NAME
private static final HBaseCommonTestingUtility UTIL
private static final ExecutorService EXECUTOR
private static Set<org.apache.hadoop.hbase.ServerName> BOOTSTRAP_NODES
private static AtomicInteger CALLED
private static volatile int BAD_RESP_INDEX
private static volatile Set<Integer> GOOD_RESP_INDEXS
private static org.apache.hadoop.hbase.shaded.protobuf.generated.RegistryProtos.GetClusterIdResponse RESP
public TestRpcBasedRegistryHedgedReads()
private org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistry createRegistry(int hedged) throws IOException
IOException
public static void setUpBeforeClass()
public static void tearDownAfterClass()
public void setUp()
private <T> T logIfError(CompletableFuture<T> future) throws IOException
IOException
public void testAllFailNoHedged() throws IOException
IOException
public void testAllFailHedged3() throws IOException
IOException
public void testFirstSucceededNoHedge() throws IOException
IOException
public void testSecondRoundSucceededHedge4() throws IOException
IOException
public void testSucceededWithLargestHedged() throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.