Package org.apache.hadoop.hbase.quotas
Class TestSnapshotQuotaObserverChore
java.lang.Object
org.apache.hadoop.hbase.quotas.TestSnapshotQuotaObserverChore
Test class for the
SnapshotQuotaObserverChore.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.hbase.client.Adminstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.client.Connectionprivate static final AtomicLongprivate SpaceQuotaHelperForTestsprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.master.HMasterprivate static final HBaseTestingUtilityprivate org.apache.hadoop.hbase.quotas.SnapshotQuotaObserverChoreorg.junit.rules.TestName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleancloseInSize(long size1, long size2, long delta) Computes ifsize2is withindeltaofsize1, inclusive.(package private) voiddebugFilesForSnapshot(org.apache.hadoop.hbase.TableName table, String snapshot) Prints details about every file referenced by the snapshot with the given name.voidsetup()static voidsetUp()static voidtearDown()voidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
TEST_UTIL
-
COUNTER
-
testName
-
conn
-
admin
-
helper
-
master
-
testChore
-
-
Constructor Details
-
TestSnapshotQuotaObserverChore
public TestSnapshotQuotaObserverChore()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
setup
- Throws:
Exception
-
testSnapshotsFromTables
- Throws:
Exception
-
testSnapshotsFromNamespaces
- Throws:
Exception
-
testSnapshotSize
- Throws:
Exception
-
testPersistingSnapshotsForNamespaces
- Throws:
Exception
-
testRemovedSnapshots
- Throws:
Exception
-
testBucketingFilesToSnapshots
- Throws:
Exception
-
debugFilesForSnapshot
void debugFilesForSnapshot(org.apache.hadoop.hbase.TableName table, String snapshot) throws IOException Prints details about every file referenced by the snapshot with the given name.- Throws:
IOException
-
closeInSize
Computes ifsize2is withindeltaofsize1, inclusive. The size of our store files will change after the first major compaction as the last compaction gets serialized into the store file (see the fields referenced by COMPACTION_EVENT_KEY in HFilePrettyPrinter).
-