Class TestMetaTableIsolationBalancerConditional
java.lang.Object
org.apache.hadoop.hbase.master.balancer.TestMetaTableIsolationBalancerConditional
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private static final int
private static final HBaseTestingUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTableToServers
(org.apache.hadoop.hbase.client.Connection connection, Set<org.apache.hadoop.hbase.TableName> tableNames) void
setUp()
void
tearDown()
void
private static void
validateRegionLocations
(Map<org.apache.hadoop.hbase.TableName, Set<org.apache.hadoop.hbase.ServerName>> tableToServers, org.apache.hadoop.hbase.TableName productTableName, boolean shouldBeBalanced) private static void
validateRegionLocationsWithRetry
(org.apache.hadoop.hbase.client.Connection connection, Set<org.apache.hadoop.hbase.TableName> tableNames, org.apache.hadoop.hbase.TableName productTableName, boolean areDistributed, boolean runBalancerOnFailure)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
NUM_SERVERS
- See Also:
-
-
Constructor Details
-
TestMetaTableIsolationBalancerConditional
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testTableIsolation
- Throws:
Exception
-
validateRegionLocationsWithRetry
private static void validateRegionLocationsWithRetry(org.apache.hadoop.hbase.client.Connection connection, Set<org.apache.hadoop.hbase.TableName> tableNames, org.apache.hadoop.hbase.TableName productTableName, boolean areDistributed, boolean runBalancerOnFailure) throws InterruptedException, IOException - Throws:
InterruptedException
IOException
-
validateRegionLocations
private static void validateRegionLocations(Map<org.apache.hadoop.hbase.TableName, Set<org.apache.hadoop.hbase.ServerName>> tableToServers, org.apache.hadoop.hbase.TableName productTableName, boolean shouldBeBalanced) -
getTableToServers
private static Map<org.apache.hadoop.hbase.TableName,Set<org.apache.hadoop.hbase.ServerName>> getTableToServers(org.apache.hadoop.hbase.client.Connection connection, Set<org.apache.hadoop.hbase.TableName> tableNames)
-