Class TestReplicationBarrierCleaner
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.TestReplicationBarrierCleaner
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
final org.junit.rules.TestName
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
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
void
tearDown()
static void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
name
-
-
Constructor Details
-
TestReplicationBarrierCleaner
public TestReplicationBarrierCleaner()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
- Throws:
IOException
-
create
-
create
private org.apache.hadoop.hbase.replication.ReplicationQueueStorage create(Long lastPushedSeqId, Long... lastPushedSeqIds) throws org.apache.hadoop.hbase.replication.ReplicationException - Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
create
private org.apache.hadoop.hbase.master.cleaner.ReplicationBarrierCleaner create(org.apache.hadoop.hbase.master.replication.ReplicationPeerManager peerManager) throws IOException - Throws:
IOException
-
addBarrier
private void addBarrier(org.apache.hadoop.hbase.client.RegionInfo region, long... barriers) throws IOException - Throws:
IOException
-
fillCatalogFamily
- Throws:
IOException
-
clearCatalogFamily
private void clearCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) throws IOException - Throws:
IOException
-
testNothing
- Throws:
IOException
-
testCleanNoPeers
- Throws:
IOException
-
testDeleteBarriers
public void testDeleteBarriers() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.apache.hadoop.hbase.replication.ReplicationException
-
testDeleteRowForDeletedRegion
public void testDeleteRowForDeletedRegion() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOException
org.apache.hadoop.hbase.replication.ReplicationException
-
testDeleteRowForDeletedRegionNoPeers
- Throws:
IOException
-