Package org.apache.hadoop.hbase.quotas
Class TestQuotaObserverChoreRegionReports
java.lang.Object
org.apache.hadoop.hbase.quotas.TestQuotaObserverChoreRegionReports
A test case to verify that region reports are expired when they are not sent.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private static final HBaseTestingUtility
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
getRegionReportsForTable
(Map<org.apache.hadoop.hbase.client.RegionInfo, Long> reports, org.apache.hadoop.hbase.TableName tn) private org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
getSnapshotForTable
(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn) void
setUp()
void
tearDown()
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
testName
-
-
Constructor Details
-
TestQuotaObserverChoreRegionReports
public TestQuotaObserverChoreRegionReports()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testReportExpiration
- Throws:
Exception
-
testMissingReportsRemovesQuota
- Throws:
Exception
-
getSnapshotForTable
private org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot getSnapshotForTable(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn) throws IOException - Throws:
IOException
-
getRegionReportsForTable
private int getRegionReportsForTable(Map<org.apache.hadoop.hbase.client.RegionInfo, Long> reports, org.apache.hadoop.hbase.TableName tn)
-