public class TestQuotaAdmin extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static String[] |
NAMESPACES |
private static org.apache.hadoop.hbase.TableName[] |
TABLE_NAMES |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestQuotaAdmin() |
Modifier and Type | Method and Description |
---|---|
private void |
assertNumResults(int expected,
org.apache.hadoop.hbase.quotas.QuotaFilter filter) |
private void |
assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu,
org.apache.hadoop.hbase.quotas.QuotaScope scope,
org.apache.hadoop.hbase.Cell cell) |
private void |
assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu,
org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings) |
private void |
assertSpaceQuota(long sizeLimit,
org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy,
org.apache.hadoop.hbase.Cell cell) |
private void |
assertSpaceQuota(long sizeLimit,
org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy,
org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings) |
void |
clearQuotaTable() |
private int |
countResults(org.apache.hadoop.hbase.quotas.QuotaFilter filter) |
int |
getQuotaSettingCount(org.apache.hadoop.hbase.client.Admin admin) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testMultiQuotaThrottling() |
void |
testNameSpaceUnThrottleByType() |
void |
testQuotaRetrieverFilter() |
void |
testQuotaScope() |
void |
testRegionServerUnThrottleByType() |
void |
testRpcThrottleWhenStartup() |
void |
testSetAndRemoveRegionServerQuota() |
void |
testSetGetRemoveRPCQuota() |
private void |
testSetGetRemoveRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType throttleType) |
void |
testSetGetRemoveSpaceQuota() |
void |
testSetModifyRemoveRPCQuota() |
void |
testSetModifyRemoveSpaceQuota() |
void |
testSimpleScan() |
void |
testSwitchExceedThrottleQuota() |
void |
testSwitchRpcThrottle() |
private void |
testSwitchRpcThrottle(org.apache.hadoop.hbase.client.Admin admin,
boolean oldRpcThrottle,
boolean newRpcThrottle) |
void |
testTableUnThrottleByType() |
void |
testThrottleType() |
void |
testUserNameSpaceUnThrottleByType() |
void |
testUserTableUnThrottleByType() |
void |
testUserUnThrottleByType() |
private void |
verifyFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu) |
private void |
verifyNotFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin) |
private void |
verifyRecordNotPresentInQuotaTable() |
private void |
verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu) |
private void |
verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type,
long limit,
TimeUnit tu,
org.apache.hadoop.hbase.quotas.QuotaScope scope) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final org.apache.hadoop.hbase.TableName[] TABLE_NAMES
private static final String[] NAMESPACES
public TestQuotaAdmin()
public static void setUpBeforeClass() throws Exception
Exception
public void clearQuotaTable() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testThrottleType() throws Exception
Exception
public void testSimpleScan() throws Exception
Exception
public void testMultiQuotaThrottling() throws Exception
Exception
public void testQuotaRetrieverFilter() throws Exception
Exception
public void testSetGetRemoveSpaceQuota() throws Exception
Exception
public void testSetModifyRemoveSpaceQuota() throws Exception
Exception
private void assertNumResults(int expected, org.apache.hadoop.hbase.quotas.QuotaFilter filter) throws Exception
Exception
public void testSetGetRemoveRPCQuota() throws Exception
Exception
private void testSetGetRemoveRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType throttleType) throws Exception
Exception
public void testSetModifyRemoveRPCQuota() throws Exception
Exception
public void testSetAndRemoveRegionServerQuota() throws Exception
Exception
public void testRpcThrottleWhenStartup() throws IOException, InterruptedException
IOException
InterruptedException
public void testSwitchRpcThrottle() throws IOException
IOException
public void testSwitchExceedThrottleQuota() throws IOException
IOException
public void testQuotaScope() throws Exception
Exception
private void testSwitchRpcThrottle(org.apache.hadoop.hbase.client.Admin admin, boolean oldRpcThrottle, boolean newRpcThrottle) throws IOException
IOException
private void verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu) throws Exception
Exception
private void verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.quotas.QuotaScope scope) throws Exception
Exception
private void verifyRecordNotPresentInQuotaTable() throws Exception
Exception
private void verifyFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu) throws Exception
Exception
private void verifyNotFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin) throws Exception
Exception
private void assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.quotas.QuotaScope scope, org.apache.hadoop.hbase.Cell cell) throws Exception
Exception
private void assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings) throws Exception
Exception
private void assertSpaceQuota(long sizeLimit, org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy, org.apache.hadoop.hbase.Cell cell) throws Exception
Exception
private void assertSpaceQuota(long sizeLimit, org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy, org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings)
private int countResults(org.apache.hadoop.hbase.quotas.QuotaFilter filter) throws Exception
Exception
public void testUserUnThrottleByType() throws Exception
Exception
public void testUserTableUnThrottleByType() throws Exception
Exception
public void testUserNameSpaceUnThrottleByType() throws Exception
Exception
public void testTableUnThrottleByType() throws Exception
Exception
public void testNameSpaceUnThrottleByType() throws Exception
Exception
public void testRegionServerUnThrottleByType() throws Exception
Exception
public int getQuotaSettingCount(org.apache.hadoop.hbase.client.Admin admin) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.