Package org.apache.hadoop.hbase.quotas
Class TestSpaceQuotas
java.lang.Object
org.apache.hadoop.hbase.quotas.TestSpaceQuotas
End-to-end test class for filesystem space quotas.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final AtomicLong
private SpaceQuotaHelperForTests
private static final org.slf4j.Logger
private static final int
private static final HBaseTestingUtility
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetReportedSizesForTable
(org.apache.hadoop.hbase.TableName tn) void
static void
setUp()
static void
tearDown()
void
void
void
void
void
void
void
void
void
void
void
void
void
private void
verifyViolation
(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate, org.apache.hadoop.hbase.TableName tn, org.apache.hadoop.hbase.client.Mutation m) private org.apache.hadoop.hbase.TableName
writeUntilViolation
(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate) private org.apache.hadoop.hbase.TableName
writeUntilViolationAndVerifyViolation
(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate, org.apache.hadoop.hbase.client.Mutation m)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
COUNTER
-
NUM_RETRIES
- See Also:
-
testName
-
helper
-
-
Constructor Details
-
TestSpaceQuotas
public TestSpaceQuotas()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
removeAllQuotas
- Throws:
Exception
-
testNoInsertsWithPut
- Throws:
Exception
-
testNoInsertsWithAppend
- Throws:
Exception
-
testNoInsertsWithIncrement
- Throws:
Exception
-
testDeletesAfterNoInserts
- Throws:
Exception
-
testNoWritesWithPut
- Throws:
Exception
-
testNoWritesWithAppend
- Throws:
Exception
-
testNoWritesWithIncrement
- Throws:
Exception
-
testNoWritesWithDelete
- Throws:
Exception
-
testNoCompactions
- Throws:
Exception
-
testNoEnableAfterDisablePolicy
- Throws:
Exception
-
testNoBulkLoadsWithNoWrites
- Throws:
Exception
-
testAtomicBulkLoadUnderQuota
- Throws:
Exception
-
testTableQuotaOverridesNamespaceQuota
- Throws:
Exception
-
getReportedSizesForTable
private Map<org.apache.hadoop.hbase.client.RegionInfo,Long> getReportedSizesForTable(org.apache.hadoop.hbase.TableName tn) -
writeUntilViolation
private org.apache.hadoop.hbase.TableName writeUntilViolation(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate) throws Exception - Throws:
Exception
-
writeUntilViolationAndVerifyViolation
private org.apache.hadoop.hbase.TableName writeUntilViolationAndVerifyViolation(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate, org.apache.hadoop.hbase.client.Mutation m) throws Exception - Throws:
Exception
-
verifyViolation
private void verifyViolation(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate, org.apache.hadoop.hbase.TableName tn, org.apache.hadoop.hbase.client.Mutation m) throws Exception - Throws:
Exception
-