Package org.apache.hadoop.hbase.client
Class TestRpcBasedRegistryHedgedReads
java.lang.Object
org.apache.hadoop.hbase.client.TestRpcBasedRegistryHedgedReads
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA dummy RpcChannel implementation that intercepts the GetClusterId() RPC calls and injects errors.static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate static Set<org.apache.hadoop.hbase.ServerName>private static AtomicIntegerstatic final HBaseClassTestRuleprivate static final ExecutorServiceprivate static final Stringprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate static org.apache.hadoop.hbase.shaded.protobuf.generated.RegistryProtos.GetClusterIdResponseprivate static final HBaseCommonTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.client.AbstractRpcBasedConnectionRegistrycreateRegistry(int hedged) private <T> TlogIfError(CompletableFuture<T> future) voidsetUp()static voidstatic voidvoidvoidvoidvoidvoid
-
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:
IOExceptionInterruptedException
-