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
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.client.TestAdminBase
ADMIN, name, TEST_UTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.client.Admin
createTable
(org.apache.hadoop.hbase.TableName tableName) private void
createTableWithDefaultConf
(byte[] TABLENAME) private void
createTableWithDefaultConf
(org.apache.hadoop.hbase.TableName TABLENAME) private void
private org.apache.hadoop.hbase.regionserver.HRegionServer
startAndWriteData
(org.apache.hadoop.hbase.TableName tableName, byte[] value) void
void
void
void
void
void
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 anymorevoid
void
void
void
void
TestCase for HBASE-21355void
void
For HBASE-2556private void
testGetWithRegionName
(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.client.RegionInfo inputRI, byte[] regionName) Do get of RegionInfo from Master using encoded region name.void
void
void
Test read only tablesvoid
void
void
private void
testSnapshotCleanup
(boolean synchronous) void
void
void
For HADOOP-2579void
void
Test for hadoop-1581 'HBASE: Unopenable tablename bug'.void
Test that user table names can contain '-' and '.' so long as they do not start with same.void
Can't enable a table if the table isn't in disabled statevoid
Can't disable a table if the table isn't in enabled statevoid
For HADOOP-2579void
void
private static void
waitForServerCommissioned
(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.Admin 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:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
testDisableCatalogTable
- Throws:
Exception
-
testIsEnabledOrDisabledOnUnknownTable
- 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
-
testGetWithRegionName
private void testGetWithRegionName(org.apache.hadoop.hbase.ServerName sn, org.apache.hadoop.hbase.client.RegionInfo inputRI, byte[] regionName) throws IOException Do get of RegionInfo from Master using encoded region name.- 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)
-