public class TestReplicationBarrierCleaner extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
TestReplicationBarrierCleaner.WarnOnlyStoppable |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestReplicationBarrierCleaner() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addBarrier(org.apache.hadoop.hbase.client.RegionInfo region,
long... barriers) |
private void |
clearCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) |
private org.apache.hadoop.hbase.replication.ReplicationQueueStorage |
create(Long lastPushedSeqId,
Long... lastPushedSeqIds) |
private org.apache.hadoop.hbase.master.cleaner.ReplicationBarrierCleaner |
create(org.apache.hadoop.hbase.master.replication.ReplicationPeerManager peerManager) |
private org.apache.hadoop.hbase.master.replication.ReplicationPeerManager |
create(org.apache.hadoop.hbase.replication.ReplicationQueueStorage queueStorage,
List<String> firstPeerIds,
List<String>... peerIds) |
private void |
fillCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testCleanNoPeers() |
void |
testDeleteBarriers() |
void |
testDeleteRowForDeletedRegion() |
void |
testDeleteRowForDeletedRegionNoPeers() |
void |
testNothing() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
public final org.junit.rules.TestName name
public TestReplicationBarrierCleaner()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void tearDown() throws IOException
IOExceptionprivate org.apache.hadoop.hbase.master.replication.ReplicationPeerManager create(org.apache.hadoop.hbase.replication.ReplicationQueueStorage queueStorage, List<String> firstPeerIds, List<String>... peerIds)
private org.apache.hadoop.hbase.replication.ReplicationQueueStorage create(Long lastPushedSeqId, Long... lastPushedSeqIds) throws org.apache.hadoop.hbase.replication.ReplicationException
org.apache.hadoop.hbase.replication.ReplicationExceptionprivate org.apache.hadoop.hbase.master.cleaner.ReplicationBarrierCleaner create(org.apache.hadoop.hbase.master.replication.ReplicationPeerManager peerManager) throws IOException
IOExceptionprivate void addBarrier(org.apache.hadoop.hbase.client.RegionInfo region, long... barriers) throws IOException
IOExceptionprivate void fillCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) throws IOException
IOExceptionprivate void clearCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) throws IOException
IOExceptionpublic void testNothing() throws IOException
IOExceptionpublic void testCleanNoPeers() throws IOException
IOExceptionpublic void testDeleteBarriers() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOExceptionorg.apache.hadoop.hbase.replication.ReplicationExceptionpublic void testDeleteRowForDeletedRegion() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOExceptionorg.apache.hadoop.hbase.replication.ReplicationExceptionpublic void testDeleteRowForDeletedRegionNoPeers() throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.