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
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.client.Connectionprivate static final AtomicLongprivate static final longprivate SpaceQuotaHelperForTestsprivate static final org.slf4j.Loggerprivate static final HBaseTestingUtilityorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) longgetRegionSizeReportForTable(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn) voidstatic voidsetUp()static voidtearDown()voidvoidvoidvoid(package private) voidwaitForStableQuotaSize(org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.hbase.TableName tn, String ns) (package private) voidwaitForStableRegionSizeReport(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
-