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
Exceptionpublic void testTableViolatesQuota() throws Exception
Exceptionpublic void testNamespaceViolatesQuota() throws Exception
Exceptionpublic void testTableQuotaOverridesNamespaceQuota() throws Exception
Exceptionpublic void testGetAllTablesWithQuotas() throws Exception
Exceptionpublic void testRpcQuotaTablesAreFiltered() throws Exception
Exceptionpublic void testFilterRegions() throws Exception
Exceptionpublic void testFetchSpaceQuota() throws Exception
Exceptionprivate int numSnapshotsInViolation(Map<org.apache.hadoop.hbase.TableName,org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> snapshots)
private void sleepWithInterrupt(long millis)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.