Package org.apache.hadoop.hbase.client
Class TestAdmin2
java.lang.Object
org.apache.hadoop.hbase.client.TestAdminBase
org.apache.hadoop.hbase.client.TestAdmin2
Class to test HBaseAdmin. Spins up the minicluster once at test start and then takes it down
afterward. Add any testing of HBaseAdmin functionality here.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.LoggerFields inherited from class org.apache.hadoop.hbase.client.TestAdminBase
ADMIN, name, NB_SERVERS, TEST_UTIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.client.HBaseAdmincreateTable(org.apache.hadoop.hbase.TableName tableName) private voidcreateTableWithDefaultConf(byte[] TABLENAME) private voidcreateTableWithDefaultConf(org.apache.hadoop.hbase.TableName TABLENAME) private voidprivate org.apache.hadoop.hbase.regionserver.HRegionServerstartAndWriteData(org.apache.hadoop.hbase.TableName tableName, byte[] value) voidvoidvoidCheck that we have an exception if the cluster is not there.voidvoidvoidvoidHMaster.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 anymorevoidvoidvoidvoidvoidvoidTestCase for HBASE-21355voidvoidFor HBASE-2556private voidtestGetWithEncodedRegionName(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 voidtestGetWithRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn, org.apache.hadoop.hbase.client.RegionInfo inputRI) voidvoidvoidTest read only tablesvoidvoidvoidprivate voidtestSnapshotCleanup(boolean synchronous) voidvoidvoidFor HADOOP-2579voidvoidTest for hadoop-1581 'HBASE: Unopenable tablename bug'.voidTest that user table names can contain '-' and '.' so long as they do not start with same.voidCan't enable a table if the table isn't in disabled statevoidCan't disable a table if the table isn't in enabled statevoidFor HADOOP-2579voidvoidprivate static voidwaitForServerCommissioned(org.apache.hadoop.hbase.ServerName excludeServer, boolean anyServerDecommissioned) Methods inherited from class org.apache.hadoop.hbase.client.TestAdminBase
getStateFromMeta, setUpBeforeClass, tearDown, tearDownAfterClass
-
Field Details
-
CLASS_RULE
-
LOG
-
-
Constructor Details
-
TestAdmin2
public TestAdmin2()
-
-
Method Details
-
testCreateBadTables
- Throws:
IOException
-
testTableNameClash
Test for hadoop-1581 'HBASE: Unopenable tablename bug'.- Throws:
Exception
-
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- Throws:
Exception
-
testReadOnlyTable
Test read only tables- Throws:
Exception
-
testTableNames
Test that user table names can contain '-' and '.' so long as they do not start with same. HBASE-771- Throws:
IOException
-
testTableExistsExceptionWithATable
For HADOOP-2579- Throws:
IOException
-
testTableNotEnabledExceptionWithATable
Can't disable a table if the table isn't in enabled state- Throws:
IOException
-
testTableNotDisabledExceptionWithATable
Can't enable a table if the table isn't in disabled state- Throws:
IOException
-
testTableNotFoundExceptionWithoutAnyTables
For HADOOP-2579- Throws:
IOException
-
testShouldUnassignTheRegion
- Throws:
Exception
-
testCloseRegionIfInvalidRegionNameIsPassed
- Throws:
Exception
-
testCloseRegionThatFetchesTheHRIFromMeta
- Throws:
Exception
-
createTable
private org.apache.hadoop.hbase.client.HBaseAdmin createTable(org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-
createTableWithDefaultConf
- Throws:
IOException
-
createTableWithDefaultConf
private void createTableWithDefaultConf(org.apache.hadoop.hbase.TableName TABLENAME) throws IOException - Throws:
IOException
-
testGetTableRegions
For HBASE-2556- Throws:
IOException
-
testMoveToPreviouslyAssignedRS
- Throws:
IOExceptionInterruptedException
-
testWALRollWriting
- Throws:
Exception
-
setUpforLogRolling
-
startAndWriteData
private org.apache.hadoop.hbase.regionserver.HRegionServer startAndWriteData(org.apache.hadoop.hbase.TableName tableName, byte[] value) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
testCheckHBaseAvailableWithoutCluster
Check that we have an exception if the cluster is not there. -
testDisableCatalogTable
- Throws:
Exception
-
testIsEnabledOrDisabledOnUnknownTable
- Throws:
Exception
-
testGetRegion
- Throws:
Exception
-
testBalancer
- Throws:
Exception
-
testRegionNormalizer
- Throws:
Exception
-
testAbortProcedureFail
- Throws:
Exception
-
testGetProcedures
- Throws:
Exception
-
testGetLocks
- Throws:
Exception
-
testDecommissionRegionServers
- Throws:
Exception
-
testGetRegionInfo
TestCase for HBASE-21355- Throws:
Exception
-
testGetWithEncodedRegionName
private void testGetWithEncodedRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn, org.apache.hadoop.hbase.client.RegionInfo inputRI) throws IOException Do get of RegionInfo from Master using encoded region name.- Throws:
IOException
-
testGetWithRegionName
private void testGetWithRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn, org.apache.hadoop.hbase.client.RegionInfo inputRI) throws IOException - Throws:
IOException
-
testTableSplitFollowedByModify
- Throws:
Exception
-
testTableMergeFollowedByModify
- Throws:
Exception
-
testSnapshotCleanupAsync
- Throws:
Exception
-
testSnapshotCleanupSync
- Throws:
Exception
-
testSnapshotCleanup
- Throws:
IOException
-
testSlowLogResponses
- Throws:
Exception
-
testGetRegionServers
- Throws:
Exception
-
waitForServerCommissioned
private static void waitForServerCommissioned(org.apache.hadoop.hbase.ServerName excludeServer, boolean anyServerDecommissioned)
-