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
Exceptionpublic void clearQuotaTable() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testThrottleType() throws Exception
Exceptionpublic void testSimpleScan() throws Exception
Exceptionpublic void testMultiQuotaThrottling() throws Exception
Exceptionpublic void testQuotaRetrieverFilter() throws Exception
Exceptionpublic void testSetGetRemoveSpaceQuota() throws Exception
Exceptionpublic void testSetModifyRemoveSpaceQuota() throws Exception
Exceptionprivate void assertNumResults(int expected, org.apache.hadoop.hbase.quotas.QuotaFilter filter) throws Exception
Exceptionpublic void testSetGetRemoveRPCQuota() throws Exception
Exceptionprivate void testSetGetRemoveRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType throttleType) throws Exception
Exceptionpublic void testSetModifyRemoveRPCQuota() throws Exception
Exceptionpublic void testSetAndRemoveRegionServerQuota() throws Exception
Exceptionpublic void testRpcThrottleWhenStartup() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testSwitchRpcThrottle() throws IOException
IOExceptionpublic void testSwitchExceedThrottleQuota() throws IOException
IOExceptionpublic void testQuotaScope() throws Exception
Exceptionprivate void testSwitchRpcThrottle(org.apache.hadoop.hbase.client.Admin admin, boolean oldRpcThrottle, boolean newRpcThrottle) throws IOException
IOExceptionprivate void verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu) throws Exception
Exceptionprivate void verifyRecordPresentInQuotaTable(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.quotas.QuotaScope scope) throws Exception
Exceptionprivate void verifyRecordNotPresentInQuotaTable() throws Exception
Exceptionprivate void verifyFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu) throws Exception
Exceptionprivate void verifyNotFetchableViaAPI(org.apache.hadoop.hbase.client.Admin admin) throws Exception
Exceptionprivate 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
Exceptionprivate void assertRPCQuota(org.apache.hadoop.hbase.quotas.ThrottleType type, long limit, TimeUnit tu, org.apache.hadoop.hbase.quotas.QuotaSettings actualSettings) throws Exception
Exceptionprivate void assertSpaceQuota(long sizeLimit, org.apache.hadoop.hbase.quotas.SpaceViolationPolicy violationPolicy, org.apache.hadoop.hbase.Cell cell) throws Exception
Exceptionprivate 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
Exceptionpublic void testUserUnThrottleByType() throws Exception
Exceptionpublic void testUserTableUnThrottleByType() throws Exception
Exceptionpublic void testUserNameSpaceUnThrottleByType() throws Exception
Exceptionpublic void testTableUnThrottleByType() throws Exception
Exceptionpublic void testNameSpaceUnThrottleByType() throws Exception
Exceptionpublic void testRegionServerUnThrottleByType() throws Exception
Exceptionpublic int getQuotaSettingCount(org.apache.hadoop.hbase.client.Admin admin) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.