public class TestTableFavoredNodes extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.favored.FavoredNodesManager |
fnm |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private int |
NUM_REGIONS |
private static int |
SLAVES |
private byte[][] |
splitKeys |
private static HBaseTestingUtility |
TEST_UTIL |
private static int |
WAIT_TIMEOUT |
| Constructor and Description |
|---|
TestTableFavoredNodes() |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkIfDaughterInherits2FN(List<org.apache.hadoop.hbase.ServerName> parentFN,
List<org.apache.hadoop.hbase.ServerName> daughterFN) |
private void |
checkIfFavoredNodeInformationIsCorrect(org.apache.hadoop.hbase.TableName tableName) |
private void |
checkNoFNForDeletedTable(List<org.apache.hadoop.hbase.HRegionInfo> regions) |
void |
setup() |
static void |
setupBeforeClass() |
static void |
tearDownAfterClass() |
void |
testCreateTable() |
void |
testMergeTable() |
void |
testSplitTable() |
void |
testSystemTables() |
void |
testTruncateTable() |
private void |
waitUntilTableRegionCountReached(org.apache.hadoop.hbase.TableName tableName,
int numRegions) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final int WAIT_TIMEOUT
private static final int SLAVES
private org.apache.hadoop.hbase.favored.FavoredNodesManager fnm
private org.apache.hadoop.hbase.client.Admin admin
private final byte[][] splitKeys
private final int NUM_REGIONS
public org.junit.rules.TestName name
public TestTableFavoredNodes()
public static void setupBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void setup() throws IOException
IOExceptionpublic void testCreateTable() throws Exception
Exceptionpublic void testTruncateTable() throws Exception
Exceptionpublic void testSplitTable() throws Exception
Exceptionpublic void testMergeTable() throws Exception
Exceptionprivate void checkNoFNForDeletedTable(List<org.apache.hadoop.hbase.HRegionInfo> regions)
private void checkIfFavoredNodeInformationIsCorrect(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exceptionpublic void testSystemTables() throws Exception
Exceptionprivate void checkIfDaughterInherits2FN(List<org.apache.hadoop.hbase.ServerName> parentFN, List<org.apache.hadoop.hbase.ServerName> daughterFN)
private void waitUntilTableRegionCountReached(org.apache.hadoop.hbase.TableName tableName, int numRegions) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.