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
Exception
public void testNoInsertsWithPut() throws Exception
Exception
public void testNoInsertsWithAppend() throws Exception
Exception
public void testNoInsertsWithIncrement() throws Exception
Exception
public void testDeletesAfterNoInserts() throws Exception
Exception
public void testNoWritesWithPut() throws Exception
Exception
public void testNoWritesWithAppend() throws Exception
Exception
public void testNoWritesWithIncrement() throws Exception
Exception
public void testNoWritesWithDelete() throws Exception
Exception
public void testNoCompactions() throws Exception
Exception
public void testNoEnableAfterDisablePolicy() throws Exception
Exception
public void testNoBulkLoadsWithNoWrites() throws Exception
Exception
public void testAtomicBulkLoadUnderQuota() throws Exception
Exception
public void testTableQuotaOverridesNamespaceQuota() throws Exception
Exception
private 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
Exception
private org.apache.hadoop.hbase.TableName writeUntilViolationAndVerifyViolation(org.apache.hadoop.hbase.quotas.SpaceViolationPolicy policyToViolate, org.apache.hadoop.hbase.client.Mutation m) throws Exception
Exception
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
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.