Class TestReplicationMarker
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestReplicationMarker
This test creates 2 mini hbase cluster. One cluster with
"hbase.regionserver.replication.marker.enabled" conf key. This will create
ReplicationMarkerChore
which will create
marker rows to be replicated to sink cluster. Second cluster with
"hbase.regionserver.replication.sink.tracker.enabled" conf key enabled. This will persist the
marker rows coming from peer cluster to persist to REPLICATION.SINK_TRACKER table.-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
private static org.apache.hadoop.conf.Configuration
private static final org.slf4j.Logger
private static HBaseTestingUtility
private static HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPayload
(List<org.apache.hadoop.hbase.Cell> cells) private long
getRows
(org.apache.hadoop.hbase.client.Connection connection) private int
getTableCount
(org.apache.hadoop.hbase.client.Connection connection) static void
static void
tearDown()
void
private static void
-
Field Details
-
CLASS_RULE
-
LOG
-
conf1
-
conf2
-
utility1
-
utility2
-
-
Constructor Details
-
TestReplicationMarker
public TestReplicationMarker()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
waitForReplicationTrackerTableCreation
-
tearDown
- Throws:
Exception
-
testReplicationMarkerRow
- Throws:
Exception
-
getRows
private List<TestReplicationMarker.ReplicationSinkTrackerRow> getRows(org.apache.hadoop.hbase.client.Connection connection) throws IOException - Throws:
IOException
-
getPayload
private TestReplicationMarker.ReplicationSinkTrackerRow getPayload(List<org.apache.hadoop.hbase.Cell> cells) -
getTableCount
- Throws:
Exception
-
getReplicatedEntries
-