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
IOExceptionpublic void testSnapshotsFromTables() throws Exception
Exceptionpublic void testSnapshotsFromNamespaces() throws Exception
Exceptionpublic void testSnapshotSize() throws Exception
Exceptionpublic void testPersistingSnapshotsForNamespaces() throws Exception
Exceptionprivate long count(org.apache.hadoop.hbase.client.Table t) throws IOException
IOExceptionprivate long extractSnapshotSize(org.apache.hadoop.hbase.client.Table quotaTable, org.apache.hadoop.hbase.TableName tn, String snapshot) throws IOException
IOExceptionprivate void verify(org.apache.hadoop.hbase.client.Table t, TestSnapshotQuotaObserverChore.IOThrowingRunnable test) throws IOException
IOExceptionboolean closeInSize(long size1, long size2, long delta)
size2 is within delta of size1, inclusive.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.