Class TestZKReplicationQueueStorage
java.lang.Object
org.apache.hadoop.hbase.replication.TestZKReplicationQueueStorage
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
final org.junit.rules.TestName
private org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration
private static final HBaseZKTestingUtil
private org.apache.hadoop.hbase.zookeeper.ZKWatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static String
getLastPushedSeqIdZNode
(String regionsZNode, String encodedName, String peerId) static void
mockHFileRefs
(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, int nPeers) mockLastPushedSeqIds
(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, String peerId1, String peerId2, int nRegions, int emptyLevel1Count, int emptyLevel2Count) static void
mockQueuesData
(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, int nServers, String peerId, org.apache.hadoop.hbase.ServerName deadServer) void
setUp()
static void
void
tearDown()
static void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
UTIL
-
zk
-
storage
-
name
-
-
Constructor Details
-
TestZKReplicationQueueStorage
public TestZKReplicationQueueStorage()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
IOException
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
Exception
-
mockQueuesData
public static void mockQueuesData(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, int nServers, String peerId, org.apache.hadoop.hbase.ServerName deadServer) throws org.apache.zookeeper.KeeperException - Throws:
org.apache.zookeeper.KeeperException
-
getLastPushedSeqIdZNode
private static String getLastPushedSeqIdZNode(String regionsZNode, String encodedName, String peerId) -
mockLastPushedSeqIds
public static Map<String,Set<String>> mockLastPushedSeqIds(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, String peerId1, String peerId2, int nRegions, int emptyLevel1Count, int emptyLevel2Count) throws org.apache.zookeeper.KeeperException - Throws:
org.apache.zookeeper.KeeperException
-
mockHFileRefs
public static void mockHFileRefs(org.apache.hadoop.hbase.replication.ZKReplicationQueueStorageForMigration storage, int nPeers) throws org.apache.zookeeper.KeeperException - Throws:
org.apache.zookeeper.KeeperException
-
testDeleteAllData
- Throws:
Exception
-
testEmptyIter
- Throws:
Exception
-
testListAllQueues
- Throws:
Exception
-
testListAllLastPushedSeqIds
- Throws:
Exception
-
testListAllHFileRefs
- Throws:
Exception
-