public class TestSnapshotQuotaObserverChore extends Object
SnapshotQuotaObserverChore
.Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.client.Connection |
conn |
private static AtomicLong |
COUNTER |
private SpaceQuotaHelperForTests |
helper |
private static org.slf4j.Logger |
LOG |
private org.apache.hadoop.hbase.master.HMaster |
master |
private static HBaseTestingUtility |
TEST_UTIL |
private org.apache.hadoop.hbase.quotas.SnapshotQuotaObserverChore |
testChore |
org.junit.rules.TestName |
testName |
Constructor and Description |
---|
TestSnapshotQuotaObserverChore() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
closeInSize(long size1,
long size2,
long delta)
Computes if
size2 is within delta of size1 , 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 |
testBucketingFilesToSnapshots() |
void |
testPersistingSnapshotsForNamespaces() |
void |
testRemovedSnapshots() |
void |
testSnapshotsFromNamespaces() |
void |
testSnapshotsFromTables() |
void |
testSnapshotSize() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility TEST_UTIL
private static final AtomicLong COUNTER
public org.junit.rules.TestName testName
private org.apache.hadoop.hbase.client.Connection conn
private org.apache.hadoop.hbase.client.Admin admin
private SpaceQuotaHelperForTests helper
private org.apache.hadoop.hbase.master.HMaster master
private org.apache.hadoop.hbase.quotas.SnapshotQuotaObserverChore testChore
public TestSnapshotQuotaObserverChore()
public void testSnapshotsFromTables() throws Exception
Exception
public void testSnapshotsFromNamespaces() throws Exception
Exception
public void testSnapshotSize() throws Exception
Exception
public void testPersistingSnapshotsForNamespaces() throws Exception
Exception
public void testRemovedSnapshots() throws Exception
Exception
public void testBucketingFilesToSnapshots() throws Exception
Exception
void debugFilesForSnapshot(org.apache.hadoop.hbase.TableName table, String snapshot) throws IOException
IOException
boolean closeInSize(long size1, long size2, long delta)
size2
is within delta
of size1
, 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).Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.