Class TestTableReplicationQueueStorage
java.lang.Object
org.apache.hadoop.hbase.replication.TestTableReplicationQueueStorage
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.slf4j.Logger
private org.apache.hadoop.hbase.replication.TableReplicationQueueStorage
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addLastSequenceIdsAndHFileRefs
(String peerId1, String peerId2) private void
assertGroupOffset
(String wal, long offset, org.apache.hadoop.hbase.replication.ReplicationGroupOffset groupOffset) private void
assertQueueId
(String peerId, org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.replication.ReplicationQueueId queueId) private String
getFileName
(String base, int i) private org.apache.hadoop.hbase.ServerName
getServerName
(int i) static void
setUp()
void
static void
tearDown()
void
void
void
void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
tableNameRule
-
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
-
testGetSetOffset
-
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
public void testHfileRefsReplicationQueues() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
org.apache.zookeeper.KeeperException
-
testRemovePeerForHFileRefs
public void testRemovePeerForHFileRefs() throws org.apache.hadoop.hbase.replication.ReplicationException, org.apache.zookeeper.KeeperException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
org.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
public void testRemoveLastSequenceIdsAndHFileRefsBefore() throws org.apache.hadoop.hbase.replication.ReplicationException, InterruptedException- Throws:
org.apache.hadoop.hbase.replication.ReplicationException
InterruptedException
-