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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void setup() throws IOException
IOException
public void testCreateTable() throws Exception
Exception
public void testTruncateTable() throws Exception
Exception
public void testSplitTable() throws Exception
Exception
public void testMergeTable() throws Exception
Exception
private void checkNoFNForDeletedTable(List<org.apache.hadoop.hbase.HRegionInfo> regions)
private void checkIfFavoredNodeInformationIsCorrect(org.apache.hadoop.hbase.TableName tableName) throws Exception
Exception
public void testSystemTables() throws Exception
Exception
private 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
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.