public class TestMetaRegionLocationCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.client.ConnectionRegistry |
REGISTRY |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestMetaRegionLocationCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanUp() |
private List<org.apache.hadoop.hbase.HRegionLocation> |
getCurrentMetaLocations(org.apache.hadoop.hbase.zookeeper.ZKWatcher zk) |
static void |
setUp() |
void |
testInitialMetaLocations() |
void |
testMetaLocationsChange() |
void |
testMetaRegionLocationCache()
Tests MetaRegionLocationCache's init procedure to make sure that it correctly watches the base
znode for notifications.
|
void |
testStandByMetaLocations() |
private void |
verifyCachedMetaLocations(org.apache.hadoop.hbase.master.HMaster master) |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.client.ConnectionRegistry REGISTRY
public TestMetaRegionLocationCache()
private List<org.apache.hadoop.hbase.HRegionLocation> getCurrentMetaLocations(org.apache.hadoop.hbase.zookeeper.ZKWatcher zk) throws Exception
Exceptionprivate void verifyCachedMetaLocations(org.apache.hadoop.hbase.master.HMaster master) throws Exception
Exceptionpublic void testInitialMetaLocations() throws Exception
Exceptionpublic void testStandByMetaLocations() throws Exception
Exceptionpublic void testMetaLocationsChange() throws Exception
Exceptionpublic void testMetaRegionLocationCache() throws Exception
ExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.