public class TestSpaceQuotas extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static AtomicLong |
COUNTER |
private SpaceQuotaHelperForTests |
helper |
private static org.slf4j.Logger |
LOG |
private static int |
NUM_RETRIES |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
TestSpaceQuotas() |
| Modifier and Type | Method and Description |
|---|---|
private Map<org.apache.hadoop.hbase.client.RegionInfo,Long> |
getReportedSizesForTable(org.apache.hadoop.hbase.TableName tn) |
void |
removeAllQuotas() |
static void |
setUp() |
static void |
tearDown() |
void |
testAtomicBulkLoadUnderQuota() |
void |
testDeletesAfterNoInserts() |
void |
testNoBulkLoadsWithNoWrites() |
void |
testNoCompactions() |
void |
testNoEnableAfterDisablePolicy() |
void |
testNoInsertsWithAppend() |
void |
testNoInsertsWithIncrement() |
void |
testNoInsertsWithPut() |
void |
testNoWritesWithAppend() |
void |
testNoWritesWithDelete() |
void |
testNoWritesWithIncrement() |
void |
testNoWritesWithPut() |
void |
testTableQuotaOverridesNamespaceQuota() |
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) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final AtomicLong COUNTER
private static final int NUM_RETRIES
public org.junit.rules.TestName testName
private SpaceQuotaHelperForTests helper
public TestSpaceQuotas()
public void removeAllQuotas() throws Exception
Exceptionpublic void testNoInsertsWithPut() throws Exception
Exceptionpublic void testNoInsertsWithAppend() throws Exception
Exceptionpublic void testNoInsertsWithIncrement() throws Exception
Exceptionpublic void testDeletesAfterNoInserts() throws Exception
Exceptionpublic void testNoWritesWithPut() throws Exception
Exceptionpublic void testNoWritesWithAppend() throws Exception
Exceptionpublic void testNoWritesWithIncrement() throws Exception
Exceptionpublic void testNoWritesWithDelete() throws Exception
Exceptionpublic void testNoCompactions() throws Exception
Exceptionpublic void testNoEnableAfterDisablePolicy() throws Exception
Exceptionpublic void testNoBulkLoadsWithNoWrites() throws Exception
Exceptionpublic void testAtomicBulkLoadUnderQuota() throws Exception
Exceptionpublic void testTableQuotaOverridesNamespaceQuota() throws Exception
Exceptionprivate Map<org.apache.hadoop.hbase.client.RegionInfo,Long> getReportedSizesForTable(org.apache.hadoop.hbase.TableName tn)
private org.apache.hadoop.hbase.TableName writeUntilViolation(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate) throws Exception
Exceptionprivate org.apache.hadoop.hbase.TableName writeUntilViolationAndVerifyViolation(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate, org.apache.hadoop.hbase.client.Mutation m) throws Exception
Exceptionprivate void verifyViolation(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate, org.apache.hadoop.hbase.TableName tn, org.apache.hadoop.hbase.client.Mutation m) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.