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
Exception
private void verifyCachedMetaLocations(org.apache.hadoop.hbase.master.HMaster master) throws Exception
Exception
public void testInitialMetaLocations() throws Exception
Exception
public void testStandByMetaLocations() throws Exception
Exception
public void testMetaLocationsChange() throws Exception
Exception
public void testMetaRegionLocationCache() throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.