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
|
private void |
testGetWithEncodedRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn,
org.apache.hadoop.hbase.client.RegionInfo inputRI)
Do get of RegionInfo from Master using encoded region name.
|
private void |
testGetWithRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn,
org.apache.hadoop.hbase.client.RegionInfo inputRI) |
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
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testCreateBadTables() throws IOException
IOExceptionpublic void testTableNameClash() throws Exception
Exceptionpublic void testCreateTableRPCTimeOut() throws Exception
Exceptionpublic void testReadOnlyTable() throws Exception
Exceptionpublic void testTableNames() throws IOException
IOExceptionpublic void testTableExistsExceptionWithATable() throws IOException
IOExceptionpublic void testTableNotEnabledExceptionWithATable() throws IOException
IOExceptionpublic void testTableNotDisabledExceptionWithATable() throws IOException
IOExceptionpublic void testTableNotFoundExceptionWithoutAnyTables() throws IOException
IOExceptionpublic void testShouldUnassignTheRegion() throws Exception
Exceptionpublic void testCloseRegionIfInvalidRegionNameIsPassed() throws Exception
Exceptionpublic void testCloseRegionThatFetchesTheHRIFromMeta() throws Exception
Exceptionprivate org.apache.hadoop.hbase.client.HBaseAdmin createTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionprivate void createTableWithDefaultConf(byte[] TABLENAME) throws IOException
IOExceptionprivate void createTableWithDefaultConf(org.apache.hadoop.hbase.TableName TABLENAME) throws IOException
IOExceptionpublic void testGetTableRegions() throws IOException
IOExceptionpublic void testMoveToPreviouslyAssignedRS() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testWALRollWriting() throws Exception
Exceptionprivate void setUpforLogRolling()
private org.apache.hadoop.hbase.regionserver.HRegionServer startAndWriteData(org.apache.hadoop.hbase.TableName tableName, byte[] value) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testCheckHBaseAvailableWithoutCluster()
public void testDisableCatalogTable() throws Exception
Exceptionpublic void testIsEnabledOrDisabledOnUnknownTable() throws Exception
Exceptionpublic void testGetRegion() throws Exception
Exceptionpublic void testBalancer() throws Exception
Exceptionpublic void testRegionNormalizer() throws Exception
Exceptionpublic void testAbortProcedureFail() throws Exception
Exceptionpublic void testGetProcedures() throws Exception
Exceptionpublic void testGetLocks() throws Exception
Exceptionpublic void testDecommissionRegionServers() throws Exception
Exceptionpublic void testGetRegionInfo() throws Exception
Exceptionprivate void testGetWithEncodedRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn, org.apache.hadoop.hbase.client.RegionInfo inputRI) throws IOException
IOExceptionprivate void testGetWithRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn, org.apache.hadoop.hbase.client.RegionInfo inputRI) throws IOException
IOExceptionpublic void testTableSplitFollowedByModify() throws Exception
Exceptionpublic void testTableMergeFollowedByModify() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.