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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void tearDown() throws IOException
IOException
private 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.ReplicationException
private org.apache.hadoop.hbase.master.cleaner.ReplicationBarrierCleaner create(org.apache.hadoop.hbase.master.replication.ReplicationPeerManager peerManager) throws IOException
IOException
private void addBarrier(org.apache.hadoop.hbase.client.RegionInfo region, long... barriers) throws IOException
IOException
private void fillCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) throws IOException
IOException
private void clearCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) throws IOException
IOException
public void testNothing() throws IOException
IOException
public void testCleanNoPeers() throws IOException
IOException
public void testDeleteBarriers() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOException
org.apache.hadoop.hbase.replication.ReplicationException
public void testDeleteRowForDeletedRegion() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException
IOException
org.apache.hadoop.hbase.replication.ReplicationException
public void testDeleteRowForDeletedRegionNoPeers() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.