Class TestTableReplicationQueueStorage
java.lang.Object
org.apache.hadoop.hbase.replication.TestTableReplicationQueueStorage
@Tag("org.apache.hadoop.hbase.testclassification.ReplicationTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestTableReplicationQueueStorage
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate org.apache.hadoop.hbase.replication.TableReplicationQueueStorageprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddLastSequenceIdsAndHFileRefs(String peerId1, String peerId2) private voidassertGroupOffset(String wal, long offset, org.apache.hadoop.hbase.replication.ReplicationGroupOffset groupOffset) private voidassertQueueId(String peerId, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.replication.ReplicationQueueId queueId) private StringgetFileName(String base, int i) private org.apache.hadoop.hbase.ServerNamegetServerName(int i) static voidsetUp()voidsetUpBeforeTest(org.junit.jupiter.api.TestInfo testInfo) static voidtearDown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
LOG
-
UTIL
-
storage
-
-
Constructor Details
-
TestTableReplicationQueueStorage
public TestTableReplicationQueueStorage()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
IOException
-
setUpBeforeTest
- Throws:
Exception
-
getServerName
-
getFileName
-
testReplicator
- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
assertQueueId
private void assertQueueId(String peerId, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.replication.ReplicationQueueId queueId) -
testPersistLogPositionAndSeqIdAtomically
- Throws:
Exception
-
assertGroupOffset
private void assertGroupOffset(String wal, long offset, org.apache.hadoop.hbase.replication.ReplicationGroupOffset groupOffset) -
testClaimQueue
- Throws:
Exception
-
testClaimQueueMultiThread
- Throws:
Exception
-
testListRemovePeerAllQueues
- Throws:
Exception
-
testRemoveAllLastPushedSeqIdsForPeer
- Throws:
Exception
-
testHfileRefsReplicationQueues
@Test public void testHfileRefsReplicationQueues() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException- Throws:
org.apache.hadoop.hbase.replication.ReplicationExceptionorg.apache.zookeeper.KeeperException
-
testRemovePeerForHFileRefs
@Test public void testRemovePeerForHFileRefs() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException- Throws:
org.apache.hadoop.hbase.replication.ReplicationExceptionorg.apache.zookeeper.KeeperException
-
addLastSequenceIdsAndHFileRefs
private void addLastSequenceIdsAndHFileRefs(String peerId1, String peerId2) throws org.apache.hadoop.hbase.replication.ReplicationException - Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-
testRemoveLastSequenceIdsAndHFileRefsBefore
@Test public void testRemoveLastSequenceIdsAndHFileRefsBefore() throws org.apache.hadoop.hbase.replication.ReplicationException, InterruptedException- Throws:
org.apache.hadoop.hbase.replication.ReplicationExceptionInterruptedException
-
testListAllPeerIds
@Test public void testListAllPeerIds() throws org.apache.hadoop.hbase.replication.ReplicationException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
-