Package org.apache.hadoop.hbase.client
Class TestRpcBasedRegistryHedgedReads
java.lang.Object
org.apache.hadoop.hbase.client.TestRpcBasedRegistryHedgedReads
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A dummy RpcChannel implementation that intercepts the GetClusterId() RPC calls and injects errors.static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static Set<org.apache.hadoop.hbase.ServerName>
private static AtomicInteger
static final HBaseClassTestRule
private static final ExecutorService
private static final String
private static final String
private static final org.slf4j.Logger
private static final String
private static final String
private static org.apache.hadoop.hbase.shaded.protobuf.generated.RegistryProtos.GetClusterIdResponse
private static final HBaseCommonTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistry
createRegistry
(int hedged) private <T> T
logIfError
(CompletableFuture<T> future) void
setUp()
static void
static void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
HEDGED_REQS_FANOUT_CONFIG_NAME
- See Also:
-
INITIAL_DELAY_SECS_CONFIG_NAME
- See Also:
-
REFRESH_INTERVAL_SECS_CONFIG_NAME
- See Also:
-
MIN_REFRESH_INTERVAL_SECS_CONFIG_NAME
- See Also:
-
UTIL
-
EXECUTOR
-
BOOTSTRAP_NODES
-
CALLED
-
BAD_RESP_INDEX
-
GOOD_RESP_INDEXS
-
RESP
private static org.apache.hadoop.hbase.shaded.protobuf.generated.RegistryProtos.GetClusterIdResponse RESP
-
-
Constructor Details
-
TestRpcBasedRegistryHedgedReads
public TestRpcBasedRegistryHedgedReads()
-
-
Method Details
-
createRegistry
private org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistry createRegistry(int hedged) throws IOException - Throws:
IOException
-
setUpBeforeClass
-
tearDownAfterClass
-
setUp
-
logIfError
- Throws:
IOException
-
testAllFailNoHedged
- Throws:
IOException
-
testAllFailHedged3
- Throws:
IOException
-
testFirstSucceededNoHedge
- Throws:
IOException
-
testSecondRoundSucceededHedge4
- Throws:
IOException
-
testSucceededWithLargestHedged
- Throws:
IOException
InterruptedException
-