public class TestAdmin2 extends TestAdminBase
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
ADMIN, name, NB_SERVERS, 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) |
private void |
setUpforLogRolling() |
private org.apache.hadoop.hbase.regionserver.HRegionServer |
startAndWriteData(org.apache.hadoop.hbase.TableName tableName,
byte[] value) |
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 n
|
void |
testDecommissionRegionServers() |
void |
testDisableCatalogTable() |
void |
testGetLocks() |
void |
testGetProcedures() |
void |
testGetRegion() |
void |
testGetRegionInfo()
TestCase for HBASE-21355
|
void |
testGetRegionServers() |
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 n
|
void |
testRegionNormalizer() |
void |
testShouldUnassignTheRegion() |
void |
testSlowLogResponses() |
private void |
testSnapshotCleanup(boolean synchronous) |
void |
testSnapshotCleanupAsync() |
void |
testSnapshotCleanupSync() |
void |
testTableExistsExceptionWithATable()
For HADOOP-2579 n
|
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 n
|
void |
testTableNotFoundExceptionWithoutAnyTables()
For HADOOP-2579
|
void |
testTableSplitFollowedByModify() |
void |
testWALRollWriting() |
private static void |
waitForServerCommissioned(org.apache.hadoop.hbase.ServerName excludeServer,
boolean anyServerDecommissioned) |
getStateFromMeta, setUpBeforeClass, tearDown, tearDownAfterClasspublic static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestAdmin2()
public 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
Exceptionpublic void testSnapshotCleanupAsync() throws Exception
Exceptionpublic void testSnapshotCleanupSync() throws Exception
Exceptionprivate void testSnapshotCleanup(boolean synchronous) throws IOException
IOExceptionpublic void testSlowLogResponses() throws Exception
Exceptionpublic void testGetRegionServers() throws Exception
Exceptionprivate static void waitForServerCommissioned(org.apache.hadoop.hbase.ServerName excludeServer, boolean anyServerDecommissioned)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.