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
Nested ClassesModifier and TypeClassDescription(package private) static class - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.conf.Configurationprivate static final org.slf4j.Loggerprivate static HBaseTestingUtilityprivate static HBaseTestingUtility - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetPayload(List<org.apache.hadoop.hbase.Cell> cells) private longgetRows(org.apache.hadoop.hbase.client.Connection connection) private intgetTableCount(org.apache.hadoop.hbase.client.Connection connection) static voidstatic voidtearDown()voidprivate 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
 
 -