public class TestAdmin2 extends TestAdminBase
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
ADMIN, name, 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
|
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
|
void |
testRegionNormalizer() |
void |
testShouldUnassignTheRegion() |
void |
testSlowLogResponses() |
private void |
testSnapshotCleanup(boolean synchronous) |
void |
testSnapshotCleanupAsync() |
void |
testSnapshotCleanupSync() |
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() |
private static void |
waitForServerCommissioned(org.apache.hadoop.hbase.ServerName excludeServer,
boolean anyServerDecommissioned) |
getStateFromMeta, setUpBeforeClass, tearDown, tearDownAfterClass
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public TestAdmin2()
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
private void testGetWithEncodedRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn, org.apache.hadoop.hbase.client.RegionInfo inputRI) throws IOException
IOException
private void testGetWithRegionName(org.apache.hadoop.hbase.client.ClusterConnection conn, org.apache.hadoop.hbase.client.RegionInfo inputRI) throws IOException
IOException
public void testTableSplitFollowedByModify() throws Exception
Exception
public void testTableMergeFollowedByModify() throws Exception
Exception
public void testSnapshotCleanupAsync() throws Exception
Exception
public void testSnapshotCleanupSync() throws Exception
Exception
private void testSnapshotCleanup(boolean synchronous) throws IOException
IOException
public void testSlowLogResponses() throws Exception
Exception
public void testGetRegionServers() throws Exception
Exception
private static void waitForServerCommissioned(org.apache.hadoop.hbase.ServerName excludeServer, boolean anyServerDecommissioned)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.