Package org.apache.hadoop.hbase.quotas
Class TestQuotaObserverChoreWithMiniCluster
java.lang.Object
org.apache.hadoop.hbase.quotas.TestQuotaObserverChoreWithMiniCluster
@Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestQuotaObserverChoreWithMiniCluster
extends Object
Test class for
QuotaObserverChore that uses a live HBase cluster.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.quotas.QuotaObserverChoreprivate static final AtomicLongprivate static final longprivate SpaceQuotaHelperForTestsprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.master.HMasterprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intnumSnapshotsInViolation(Map<org.apache.hadoop.hbase.TableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> snapshots) voidremoveAllQuotas(org.junit.jupiter.api.TestInfo testInfo) static voidsetUp()private voidsleepWithInterrupt(long millis) static voidtearDown()voidvoidvoidvoidtestNamespaceViolatesQuota(org.junit.jupiter.api.TestInfo testInfo) voidvoidtestTableQuotaOverridesNamespaceQuota(org.junit.jupiter.api.TestInfo testInfo) void
-
Field Details
-
LOG
-
TEST_UTIL
-
COUNTER
-
DEFAULT_WAIT_MILLIS
- See Also:
-
master
-
chore
-
snapshotNotifier
-
helper
-
-
Constructor Details
-
TestQuotaObserverChoreWithMiniCluster
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
removeAllQuotas
- Throws:
Exception
-
testTableViolatesQuota
- Throws:
Exception
-
testNamespaceViolatesQuota
@Test public void testNamespaceViolatesQuota(org.junit.jupiter.api.TestInfo testInfo) throws Exception - Throws:
Exception
-
testTableQuotaOverridesNamespaceQuota
@Test public void testTableQuotaOverridesNamespaceQuota(org.junit.jupiter.api.TestInfo testInfo) throws Exception - 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
-