public class TestMasterRegistryHedgedReads extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
TestMasterRegistryHedgedReads.RpcChannelImpl  | 
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
IOExceptionpublic void testAllFailNoHedged() throws IOException
IOExceptionpublic void testAllFailHedged3() throws IOException
IOExceptionpublic void testFirstSucceededNoHedge() throws IOException
IOExceptionpublic void testSecondRoundSucceededHedge4() throws IOException
IOExceptionpublic void testSucceededWithLargestHedged() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.