public class TestReplicationSink extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
baseNamespaceDir |
private static int |
BATCH_SIZE |
static HBaseClassTestRule |
CLASS_RULE |
protected static byte[] |
FAM_NAME1 |
protected static byte[] |
FAM_NAME2 |
protected static String |
hfileArchiveDir |
private static org.slf4j.Logger |
LOG |
protected static String |
replicationClusterId |
protected static org.apache.hadoop.hbase.replication.regionserver.ReplicationSink |
SINK |
protected static org.apache.hadoop.hbase.Stoppable |
STOPPABLE |
protected static org.apache.hadoop.hbase.TableName |
TABLE_NAME1 |
protected static org.apache.hadoop.hbase.TableName |
TABLE_NAME2 |
protected static org.apache.hadoop.hbase.client.Table |
table1 |
protected static org.apache.hadoop.hbase.client.Table |
table2 |
protected static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestReplicationSink() |
Modifier and Type | Method and Description |
---|---|
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) |
private org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry.Builder |
createWALEntryBuilder(org.apache.hadoop.hbase.TableName table) |
void |
setUp() |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testApplyDeleteBeforePut()
Puts are buffered, but this tests when a delete (not-buffered) is applied
before the actual Put that creates it.
|
void |
testBatchSink()
Insert a whole batch of entries
|
void |
testMixedDeletes()
Insert then do different types of deletes
|
void |
testMixedPutDelete()
Insert a mix of puts and deletes
|
void |
testMixedPutTables()
Insert to 2 different tables
|
void |
testReplicateEntriesForHFiles()
Test replicateEntries with a bulk load entry for 25 HFiles
|
void |
testRethrowRetriesExhaustedWithDetailsException() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int BATCH_SIZE
protected static final HBaseTestingUtility TEST_UTIL
protected static org.apache.hadoop.hbase.replication.regionserver.ReplicationSink SINK
protected static final org.apache.hadoop.hbase.TableName TABLE_NAME1
protected static final org.apache.hadoop.hbase.TableName TABLE_NAME2
protected static final byte[] FAM_NAME1
protected static final byte[] FAM_NAME2
protected static org.apache.hadoop.hbase.client.Table table1
protected static org.apache.hadoop.hbase.Stoppable STOPPABLE
protected static org.apache.hadoop.hbase.client.Table table2
protected static String baseNamespaceDir
protected static String hfileArchiveDir
protected static String replicationClusterId
public TestReplicationSink()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testBatchSink() throws Exception
Exception
public void testMixedPutDelete() throws Exception
Exception
public void testMixedPutTables() throws Exception
Exception
public void testMixedDeletes() throws Exception
Exception
public void testApplyDeleteBeforePut() throws Exception
Exception
public void testRethrowRetriesExhaustedWithDetailsException() throws Exception
Exception
public void testReplicateEntriesForHFiles() throws Exception
Exception
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)
private org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry.Builder createWALEntryBuilder(org.apache.hadoop.hbase.TableName table)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.