Package org.apache.hadoop.hbase.quotas
Class TestSpaceQuotasWithSnapshots
java.lang.Object
org.apache.hadoop.hbase.quotas.TestSpaceQuotasWithSnapshots
Test class to exercise the inclusion of snapshots in space quotas
-
Field Summary
Modifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Admin
static final HBaseClassTestRule
private org.apache.hadoop.hbase.client.Connection
private static final AtomicLong
private static final long
private SpaceQuotaHelperForTests
private static final org.slf4j.Logger
private static final HBaseTestingUtility
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) long
getRegionSizeReportForTable
(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn) void
static void
setUp()
static void
tearDown()
void
void
void
void
(package private) void
waitForStableQuotaSize
(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn, String ns) (package private) void
waitForStableRegionSizeReport
(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn)
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
COUNTER
-
FUDGE_FOR_TABLE_SIZE
- See Also:
-
testName
-
helper
-
conn
-
admin
-
-
Constructor Details
-
TestSpaceQuotasWithSnapshots
public TestSpaceQuotasWithSnapshots()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
removeAllQuotas
- Throws:
Exception
-
testTablesInheritSnapshotSize
- Throws:
Exception
-
testNamespacesInheritSnapshotSize
- Throws:
Exception
-
testTablesWithSnapshots
- Throws:
Exception
-
testRematerializedTablesDoNoInheritSpace
- Throws:
Exception
-
waitForStableQuotaSize
void waitForStableQuotaSize(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn, String ns) throws Exception - Throws:
Exception
-
getRegionSizeReportForTable
long getRegionSizeReportForTable(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn) throws IOException - Throws:
IOException
-
waitForStableRegionSizeReport
void waitForStableRegionSizeReport(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn) throws Exception - Throws:
Exception
-