Class TestReplicationBarrierCleaner
java.lang.Object
org.apache.hadoop.hbase.master.cleaner.TestReplicationBarrierCleaner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.slf4j.Loggerfinal org.junit.rules.TestNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddBarrier(org.apache.hadoop.hbase.client.RegionInfo region, long... barriers) private voidclearCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) private org.apache.hadoop.hbase.replication.ReplicationQueueStorageprivate org.apache.hadoop.hbase.master.cleaner.ReplicationBarrierCleanercreate(org.apache.hadoop.hbase.master.replication.ReplicationPeerManager peerManager) private org.apache.hadoop.hbase.master.replication.ReplicationPeerManagercreate(org.apache.hadoop.hbase.replication.ReplicationQueueStorage queueStorage, List<String> firstPeerIds, List<String>... peerIds) private voidfillCatalogFamily(org.apache.hadoop.hbase.client.RegionInfo region) static voidvoidtearDown()static voidvoidvoidvoidvoidvoid
-
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:
IOExceptionorg.apache.hadoop.hbase.replication.ReplicationException
-
testDeleteRowForDeletedRegion
public void testDeleteRowForDeletedRegion() throws IOException, org.apache.hadoop.hbase.replication.ReplicationException- Throws:
IOExceptionorg.apache.hadoop.hbase.replication.ReplicationException
-
testDeleteRowForDeletedRegionNoPeers
- Throws:
IOException
-