Package org.apache.hadoop.hbase.quotas
Class TestSnapshotQuotaObserverChore
java.lang.Object
org.apache.hadoop.hbase.quotas.TestSnapshotQuotaObserverChore
Test class for the
SnapshotQuotaObserverChore
.-
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 SpaceQuotaHelperForTests
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.master.HMaster
private static final HBaseTestingUtility
private org.apache.hadoop.hbase.quotas.SnapshotQuotaObserverChore
org.junit.rules.TestName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
closeInSize
(long size1, long size2, long delta) Computes ifsize2
is withindelta
ofsize1
, inclusive.(package private) void
debugFilesForSnapshot
(org.apache.hadoop.hbase.TableName table, String snapshot) Prints details about every file referenced by the snapshot with the given name.void
setup()
static void
setUp()
static void
tearDown()
void
void
void
void
void
void
-
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 ifsize2
is withindelta
ofsize1
, 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).
-