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
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.quotas.QuotaObserverChore
static final HBaseClassTestRule
private static final AtomicLong
private static final long
private SpaceQuotaHelperForTests
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.master.HMaster
private static final HBaseTestingUtility
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
numSnapshotsInViolation
(Map<org.apache.hadoop.hbase.TableName, org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot> snapshots) void
static void
setUp()
private void
sleepWithInterrupt
(long millis) static void
tearDown()
void
void
void
void
void
void
void
-
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
-