public class TestAdmin2 extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestAdmin2() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.hbase.client.HBaseAdmin |
createTable(org.apache.hadoop.hbase.TableName tableName) |
private void |
createTableWithDefaultConf(byte[] TABLENAME) |
private void |
createTableWithDefaultConf(org.apache.hadoop.hbase.TableName TABLENAME) |
void |
setUp() |
static void |
setUpBeforeClass() |
private void |
setUpforLogRolling() |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
startAndWriteData(org.apache.hadoop.hbase.TableName tableName,
byte[] value) |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testAbortProcedureFail() |
void |
testBalancer() |
void |
testCheckHBaseAvailableWithoutCluster()
Check that we have an exception if the cluster is not there.
|
void |
testCloseRegionIfInvalidRegionNameIsPassed() |
void |
testCloseRegionThatFetchesTheHRIFromMeta() |
void |
testCreateBadTables() |
void |
testCreateTableRPCTimeOut()
HMaster.createTable used to be kind of synchronous call
Thus creating of table with lots of regions can cause RPC timeout
After the fix to make createTable truly async, RPC timeout shouldn't be an
issue anymore
|
void |
testDecommissionRegionServers() |
void |
testDisableCatalogTable() |
void |
testGetLocks() |
void |
testGetProcedures() |
void |
testGetRegion() |
void |
testGetRegionInfo()
TestCase for HBASE-21355
|
void |
testGetTableRegions()
For HBASE-2556
|
void |
testIsEnabledOrDisabledOnUnknownTable() |
void |
testMoveToPreviouslyAssignedRS() |
void |
testReadOnlyTable()
Test read only tables
|
void |
testRegionNormalizer() |
void |
testShouldUnassignTheRegion() |
void |
testTableExistsExceptionWithATable()
For HADOOP-2579
|
void |
testTableMergeFollowedByModify() |
void |
testTableNameClash()
Test for hadoop-1581 'HBASE: Unopenable tablename bug'.
|
void |
testTableNames()
Test that user table names can contain '-' and '.' so long as they do not
start with same.
|
void |
testTableNotDisabledExceptionWithATable()
Can't enable a table if the table isn't in disabled state
|
void |
testTableNotEnabledExceptionWithATable()
Can't disable a table if the table isn't in enabled state
|
void |
testTableNotFoundExceptionWithoutAnyTables()
For HADOOP-2579
|
void |
testTableSplitFollowedByModify() |
void |
testWALRollWriting() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private org.apache.hadoop.hbase.client.Admin admin
public org.junit.rules.TestName name
public TestAdmin2()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testCreateBadTables() throws IOException
IOException
public void testTableNameClash() throws Exception
Exception
public void testCreateTableRPCTimeOut() throws Exception
Exception
public void testReadOnlyTable() throws Exception
Exception
public void testTableNames() throws IOException
IOException
public void testTableExistsExceptionWithATable() throws IOException
IOException
public void testTableNotEnabledExceptionWithATable() throws IOException
IOException
public void testTableNotDisabledExceptionWithATable() throws IOException
IOException
public void testTableNotFoundExceptionWithoutAnyTables() throws IOException
IOException
public void testShouldUnassignTheRegion() throws Exception
Exception
public void testCloseRegionIfInvalidRegionNameIsPassed() throws Exception
Exception
public void testCloseRegionThatFetchesTheHRIFromMeta() throws Exception
Exception
private org.apache.hadoop.hbase.client.HBaseAdmin createTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
private void createTableWithDefaultConf(byte[] TABLENAME) throws IOException
IOException
private void createTableWithDefaultConf(org.apache.hadoop.hbase.TableName TABLENAME) throws IOException
IOException
public void testGetTableRegions() throws IOException
IOException
public void testMoveToPreviouslyAssignedRS() throws IOException, InterruptedException
IOException
InterruptedException
public void testWALRollWriting() throws Exception
Exception
private void setUpforLogRolling()
private org.apache.hadoop.hbase.regionserver.HRegionServer startAndWriteData(org.apache.hadoop.hbase.TableName tableName, byte[] value) throws IOException, InterruptedException
IOException
InterruptedException
public void testCheckHBaseAvailableWithoutCluster()
public void testDisableCatalogTable() throws Exception
Exception
public void testIsEnabledOrDisabledOnUnknownTable() throws Exception
Exception
public void testGetRegion() throws Exception
Exception
public void testBalancer() throws Exception
Exception
public void testRegionNormalizer() throws Exception
Exception
public void testAbortProcedureFail() throws Exception
Exception
public void testGetProcedures() throws Exception
Exception
public void testGetLocks() throws Exception
Exception
public void testDecommissionRegionServers() throws Exception
Exception
public void testGetRegionInfo() throws Exception
Exception
public void testTableSplitFollowedByModify() throws Exception
Exception
public void testTableMergeFollowedByModify() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.