Class TestReplicationSink
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.TestReplicationSink
-
Field Summary
Modifier and TypeFieldDescriptionprotected static String
private static final int
static final HBaseClassTestRule
protected static final byte[]
protected static final byte[]
protected static String
private static final org.slf4j.Logger
protected static String
protected static org.apache.hadoop.hbase.replication.regionserver.ReplicationSink
protected static org.apache.hadoop.hbase.Stoppable
protected static final org.apache.hadoop.hbase.TableName
protected static final org.apache.hadoop.hbase.TableName
protected static org.apache.hadoop.hbase.client.Table
protected static org.apache.hadoop.hbase.client.Table
protected static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry
createEntry
(org.apache.hadoop.hbase.TableName table, int row, org.apache.hadoop.hbase.KeyValue.Type type, List<org.apache.hadoop.hbase.Cell> cells) private org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry.Builder
createWALEntryBuilder
(org.apache.hadoop.hbase.TableName table) void
setUp()
static void
static void
void
Puts are buffered, but this tests when a delete (not-buffered) is applied before the actual Put that creates it.void
Insert a whole batch of entriesvoid
Test failure metrics produced for failed replication editsvoid
void
Insert then do different types of deletesvoid
Insert a mix of puts and deletesvoid
Insert to 2 different tablesvoid
Test replicateEntries with a bulk load entry for 25 HFilesvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
BATCH_SIZE
- See Also:
-
TEST_UTIL
-
SINK
-
TABLE_NAME1
-
TABLE_NAME2
-
FAM_NAME1
-
FAM_NAME2
-
table1
-
STOPPABLE
-
table2
-
baseNamespaceDir
-
hfileArchiveDir
-
replicationClusterId
-
-
Constructor Details
-
TestReplicationSink
public TestReplicationSink()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
setUp
- Throws:
Exception
-
testBatchSink
Insert a whole batch of entries- Throws:
Exception
-
testMixedPutDelete
Insert a mix of puts and deletes- Throws:
Exception
-
testLargeEditsPutDelete
- Throws:
Exception
-
testMixedPutTables
Insert to 2 different tables- Throws:
Exception
-
testMixedDeletes
Insert then do different types of deletes- Throws:
Exception
-
testApplyDeleteBeforePut
Puts are buffered, but this tests when a delete (not-buffered) is applied before the actual Put that creates it.- Throws:
Exception
-
testRethrowRetriesExhaustedWithDetailsException
- Throws:
Exception
-
testReplicateEntriesForHFiles
Test replicateEntries with a bulk load entry for 25 HFiles- Throws:
Exception
-
testFailedReplicationSinkMetrics
Test failure metrics produced for failed replication edits- Throws:
IOException
-
createEntry
private org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry createEntry(org.apache.hadoop.hbase.TableName table, int row, org.apache.hadoop.hbase.KeyValue.Type type, List<org.apache.hadoop.hbase.Cell> cells) -
createWALEntryBuilder
private org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry.Builder createWALEntryBuilder(org.apache.hadoop.hbase.TableName table)
-