Package org.apache.hadoop.hbase.quotas
Class TestQuotaObserverChoreWithMiniCluster
java.lang.Object
org.apache.hadoop.hbase.quotas.TestQuotaObserverChoreWithMiniCluster
Test class for
QuotaObserverChore that uses a live HBase cluster.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.quotas.QuotaObserverChorestatic final HBaseClassTestRuleprivate static final AtomicLongprivate static final longprivate SpaceQuotaHelperForTestsprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.master.HMasterprivate static final HBaseTestingUtilityorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intnumSnapshotsInViolation(Map<org.apache.hadoop.hbase.TableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> snapshots) voidstatic voidsetUp()private voidsleepWithInterrupt(long millis) static voidtearDown()voidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
COUNTER
-
DEFAULT_WAIT_MILLIS
- See Also:
-
testName
-
master
-
chore
-
snapshotNotifier
-
helper
-
-
Constructor Details
-
TestQuotaObserverChoreWithMiniCluster
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
removeAllQuotas
- Throws:
Exception
-
testTableViolatesQuota
- Throws:
Exception
-
testNamespaceViolatesQuota
- Throws:
Exception
-
testTableQuotaOverridesNamespaceQuota
- Throws:
Exception
-
testGetAllTablesWithQuotas
- Throws:
Exception
-
testRpcQuotaTablesAreFiltered
- Throws:
Exception
-
testFilterRegions
- Throws:
Exception
-
testFetchSpaceQuota
- Throws:
Exception
-
numSnapshotsInViolation
private int numSnapshotsInViolation(Map<org.apache.hadoop.hbase.TableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> snapshots) -
sleepWithInterrupt
-