Class TestReplicationStateBasic

java.lang.Object
org.apache.hadoop.hbase.replication.TestReplicationStateBasic
Direct Known Subclasses:
TestReplicationStateZKImpl

public abstract class TestReplicationStateBasic extends Object
White box testing for replication state interfaces. Implementations should extend this class, and initialize the interfaces properly.
  • Field Details

  • Constructor Details

  • Method Details

    • testReplicationQueueStorage

      public void testReplicationQueueStorage() throws org.apache.hadoop.hbase.replication.ReplicationException
      Throws:
      org.apache.hadoop.hbase.replication.ReplicationException
    • removeAllQueues

      private void removeAllQueues(org.apache.hadoop.hbase.ServerName serverName) throws org.apache.hadoop.hbase.replication.ReplicationException
      Throws:
      org.apache.hadoop.hbase.replication.ReplicationException
    • testReplicationQueues

      public void testReplicationQueues() throws org.apache.hadoop.hbase.replication.ReplicationException
      Throws:
      org.apache.hadoop.hbase.replication.ReplicationException
    • 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
    • testReplicationPeers

      public void testReplicationPeers() throws Exception
      Throws:
      Exception
    • getFileName

      private String getFileName(String base, int i)
    • testPersistLogPositionAndSeqIdAtomically

      Throws:
      Exception
    • assertConnectedPeerStatus

      protected void assertConnectedPeerStatus(boolean status, String peerId) throws Exception
      Throws:
      Exception
    • assertNumberOfPeers

      protected void assertNumberOfPeers(int total) throws org.apache.hadoop.hbase.replication.ReplicationException
      Throws:
      org.apache.hadoop.hbase.replication.ReplicationException
    • populateQueues

      protected void populateQueues() throws org.apache.hadoop.hbase.replication.ReplicationException
      Throws:
      org.apache.hadoop.hbase.replication.ReplicationException