public class TestQuotaObserverChoreWithMiniCluster extends Object
QuotaObserverChore
that uses a live HBase cluster.Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.quotas.QuotaObserverChore |
chore |
static HBaseClassTestRule |
CLASS_RULE |
private static AtomicLong |
COUNTER |
private static long |
DEFAULT_WAIT_MILLIS |
private SpaceQuotaHelperForTests |
helper |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.hbase.master.HMaster |
master |
private SpaceQuotaSnapshotNotifierForTest |
snapshotNotifier |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
Constructor and Description |
---|
TestQuotaObserverChoreWithMiniCluster() |
Modifier and Type | Method and Description |
---|---|
private int |
numSnapshotsInViolation(Map<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> snapshots) |
void |
removeAllQuotas() |
static void |
setUp() |
private void |
sleepWithInterrupt(long millis) |
static void |
tearDown() |
void |
testFetchSpaceQuota() |
void |
testFilterRegions() |
void |
testGetAllTablesWithQuotas() |
void |
testNamespaceViolatesQuota() |
void |
testRpcQuotaTablesAreFiltered() |
void |
testTableQuotaOverridesNamespaceQuota() |
void |
testTableViolatesQuota() |
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 long DEFAULT_WAIT_MILLIS
public org.junit.rules.TestName testName
private org.apache.hadoop.hbase.master.HMaster master
private org.apache.hadoop.hbase.quotas.QuotaObserverChore chore
private SpaceQuotaSnapshotNotifierForTest snapshotNotifier
private SpaceQuotaHelperForTests helper
public TestQuotaObserverChoreWithMiniCluster()
public void removeAllQuotas() throws Exception
Exception
public void testTableViolatesQuota() throws Exception
Exception
public void testNamespaceViolatesQuota() throws Exception
Exception
public void testTableQuotaOverridesNamespaceQuota() throws Exception
Exception
public void testGetAllTablesWithQuotas() throws Exception
Exception
public void testRpcQuotaTablesAreFiltered() throws Exception
Exception
public void testFilterRegions() throws Exception
Exception
public void testFetchSpaceQuota() throws Exception
Exception
private int numSnapshotsInViolation(Map<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> snapshots)
private void sleepWithInterrupt(long millis)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.