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 HBaseTestingUtil |
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. |
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 HBaseTestingUtil 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
boolean closeInSize(long size1, long size2, long delta)
size2
is within delta
of size1
, inclusive.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.