public class TestSnapshotQuotaObserverChore extends Object
SnapshotQuotaObserverChore
.Modifier and Type | Class and Description |
---|---|
private static interface |
TestSnapshotQuotaObserverChore.IOThrowingRunnable |
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. |
private long |
count(org.apache.hadoop.hbase.client.Table t) |
private long |
extractSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable,
org.apache.hadoop.hbase.TableName tn,
String snapshot) |
void |
setup() |
static void |
setUp() |
static void |
tearDown() |
void |
testPersistingSnapshotsForNamespaces() |
void |
testSnapshotsFromNamespaces() |
void |
testSnapshotsFromTables() |
void |
testSnapshotSize() |
void |
testSnapshotSizePersistence() |
private void |
verify(org.apache.hadoop.hbase.client.Table t,
TestSnapshotQuotaObserverChore.IOThrowingRunnable test) |
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 testSnapshotSizePersistence() throws IOException
IOException
public void testSnapshotsFromTables() throws Exception
Exception
public void testSnapshotsFromNamespaces() throws Exception
Exception
public void testSnapshotSize() throws Exception
Exception
public void testPersistingSnapshotsForNamespaces() throws Exception
Exception
private long count(org.apache.hadoop.hbase.client.Table t) throws IOException
IOException
private long extractSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshot) throws IOException
IOException
private void verify(org.apache.hadoop.hbase.client.Table t, TestSnapshotQuotaObserverChore.IOThrowingRunnable test) throws IOException
IOException
boolean closeInSize(long size1, long size2, long delta)
size2
is within delta
of size1
, inclusive.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.