Class TestReplicateToReplica
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestReplicateToReplica
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.hbase.client.AsyncClusterConnection
private static org.apache.hadoop.hbase.executor.ExecutorService
private static byte[]
private org.apache.hadoop.hbase.regionserver.FlushRequester
private org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationBufferManager
final TableNameTestRule
private org.apache.hadoop.hbase.regionserver.HRegion
private static byte[]
private boolean
private Queue<org.apache.hadoop.hbase.util.Pair<List<org.apache.hadoop.hbase.wal.WAL.Entry>,
CompletableFuture<Void>>> private org.apache.hadoop.hbase.regionserver.RegionServerServices
private org.apache.hadoop.hbase.regionserver.HRegion
private org.apache.hadoop.hbase.TableName
private org.apache.hadoop.hbase.client.TableDescriptor
private org.apache.hadoop.fs.Path
private static List<org.apache.hadoop.hbase.client.Put>
private static final HBaseTestingUtil
private org.apache.hadoop.hbase.wal.WALFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
failAll()
private void
failOne()
private org.apache.hadoop.hbase.regionserver.HRegion.FlushResult
private void
replicate
(org.apache.hadoop.hbase.util.Pair<List<org.apache.hadoop.hbase.wal.WAL.Entry>, CompletableFuture<Void>> pair) private void
private void
void
setUp()
static void
void
tearDown()
static void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
UTIL
-
FAMILY
-
QUAL
-
EXEC
-
name
-
tableName
-
testDir
-
td
-
rss
-
conn
-
manager
private org.apache.hadoop.hbase.regionserver.regionreplication.RegionReplicationBufferManager manager -
flushRequester
-
-
secondary
-
walFactory
-
queueReqAndResps
-
reqAndResps
private Queue<org.apache.hadoop.hbase.util.Pair<List<org.apache.hadoop.hbase.wal.WAL.Entry>,CompletableFuture<Void>>> reqAndResps -
TO_ADD_AFTER_PREPARE_FLUSH
-
-
Constructor Details
-
TestReplicateToReplica
public TestReplicateToReplica()
-
-
Method Details
-
setUpBeforeClass
-
tearDownAfterClass
-
setUp
- Throws:
IOException
-
tearDown
- Throws:
IOException
-
flushPrimary
- Throws:
IOException
-
replicate
private void replicate(org.apache.hadoop.hbase.util.Pair<List<org.apache.hadoop.hbase.wal.WAL.Entry>, CompletableFuture<Void>> pair) throws IOException- Throws:
IOException
-
replicateOne
- Throws:
IOException
-
replicateAll
- Throws:
IOException
-
failOne
-
failAll
-
testNormalReplicate
- Throws:
IOException
-
testNormalFlush
- Throws:
IOException
-
testErrorBeforeFlushStart
- Throws:
IOException
-
testErrorAfterFlushStartBeforeFlushCommit
- Throws:
IOException
-
testCatchUpWithCannotFlush
- Throws:
IOException
InterruptedException
-
testCatchUpWithReopen
- Throws:
IOException
-