public class TestMasterRegistryHedgedReads extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestMasterRegistryHedgedReads.RpcChannelImpl
A dummy RpcChannel implementation that intercepts the GetClusterId() RPC calls and injects
errors.
|
static class |
TestMasterRegistryHedgedReads.RpcClientImpl |
Modifier and Type | Field and Description |
---|---|
private static int |
BAD_RESP_INDEX |
private static AtomicInteger |
CALLED |
static HBaseClassTestRule |
CLASS_RULE |
private static ExecutorService |
EXECUTOR |
private static Set<Integer> |
GOOD_RESP_INDEXS |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.GetClusterIdResponse |
RESP |
private static HBaseCommonTestingUtility |
UTIL |
Constructor and Description |
---|
TestMasterRegistryHedgedReads() |
Modifier and Type | Method and Description |
---|---|
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 HBaseCommonTestingUtility UTIL
private static final ExecutorService EXECUTOR
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.MasterProtos.GetClusterIdResponse RESP
public TestMasterRegistryHedgedReads()
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–2021 The Apache Software Foundation. All rights reserved.