public class TestHRegionReplayEvents extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
static org.apache.hadoop.conf.Configuration |
CONF |
protected byte[] |
cq |
protected String |
method |
org.junit.rules.TestName |
name |
protected byte[] |
row |
protected byte[] |
row2 |
protected byte[] |
tableName |
| Constructor and Description |
|---|
TestHRegionReplayEvents() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
testBatchReplayWithMultipleNonces() |
void |
testOnlyReplayingFlushStartDoesNotHoldUpRegionClose()
Tests a case where we replay only a flush start marker, then the region is closed.
|
void |
testRefresStoreFiles() |
void |
testRegionReadsEnabledFlag()
Tests the reads enabled flag for the region.
|
void |
testRegionReplicaSecondaryCannotFlush() |
void |
testReplayBulkLoadEvent()
Tests replaying region open markers from primary region.
|
void |
testReplayFlushCommitMarkerLargerThanFlushStartMarker()
Tests the case where we prepare a flush with some seqId and we receive a flush commit marker
larger than the previous flush start marker.
|
void |
testReplayFlushCommitMarkerSmallerThanFlushStartMarker()
Tests the case where we prepare a flush with some seqId and we receive a flush commit marker
less than the previous flush start marker.
|
void |
testReplayFlushCommitMarkerWithoutFlushStartMarker(boolean droppableMemstore)
Tests the case where we receive a flush commit before receiving any flush prepare markers
|
void |
testReplayFlushCommitMarkerWithoutFlushStartMarkerDroppableMemstore()
Tests the case where we receive a flush commit before receiving any flush prepare markers.
|
void |
testReplayFlushCommitMarkerWithoutFlushStartMarkerNonDroppableMemstore()
Tests the case where we receive a flush commit before receiving any flush prepare markers.
|
void |
testReplayFlushesAndCompactions() |
void |
testReplayFlushSeqIds() |
void |
testReplayFlushStartMarkers()
Tests cases where we prepare a flush with some seqId and we receive other flush start markers
equal to, greater or less than the previous flush start marker.
|
void |
testReplayingBulkLoadEventWithFileAlreadyDeleted() |
void |
testReplayingCompactionWithFileAlreadyDeleted() |
void |
testReplayingFlushCommitWithFileAlreadyDeleted() |
void |
testReplayingFlushRequestRestoresReadsEnabledState()
Test the case where the secondary region replica is not in reads enabled state because it is
waiting for a flush or region open marker from primary region.
|
void |
testReplayingFlushRestoresReadsEnabledState()
Test the case where the secondary region replica is not in reads enabled state because it is
waiting for a flush or region open marker from primary region.
|
void |
testReplayingFlushWithEmptyMemstoreRestoresReadsEnabledState()
Test the case where the secondary region replica is not in reads enabled state because it is
waiting for a flush or region open marker from primary region.
|
void |
testReplayingRegionOpenEventRestoresReadsEnabledState()
Test the case where the secondary region replica is not in reads enabled state because it is
waiting for a flush or region open marker from primary region.
|
void |
testReplayingRegionOpenEventWithFileAlreadyDeleted() |
void |
testReplayRegionOpenEvent()
Tests replaying region open markers from primary region.
|
void |
testReplayRegionOpenEventAfterFlushStart()
Tests the case where we replay a region open event after a flush start but before receiving
flush commit
|
void |
testSecondaryRegionDoesNotWriteRegionEventsToWAL()
Tests that a region opened in secondary mode would not write region open / close
events to its WAL.
|
void |
testSeqIdsFromReplay() |
void |
testSkippingEditsWithSmallerSeqIdAfterRegionOpenEvent()
Tests whether edits coming in for replay are skipped which have smaller seq id than the seqId
of the last replayed region open event.
|
void |
testWriteFlushRequestMarker()
Tests the case where a request for flush cache is sent to the region, but region cannot flush.
|
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
public static org.apache.hadoop.conf.Configuration CONF
protected byte[] tableName
protected final byte[] row
protected final byte[] row2
protected byte[] cq
public TestHRegionReplayEvents()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testRegionReplicaSecondaryCannotFlush() throws IOException
IOExceptionpublic void testOnlyReplayingFlushStartDoesNotHoldUpRegionClose() throws IOException
IOExceptionpublic void testBatchReplayWithMultipleNonces() throws IOException
IOExceptionpublic void testReplayFlushesAndCompactions() throws IOException
IOExceptionpublic void testReplayFlushStartMarkers() throws IOException
IOExceptionpublic void testReplayFlushCommitMarkerSmallerThanFlushStartMarker() throws IOException
IOExceptionpublic void testReplayFlushCommitMarkerLargerThanFlushStartMarker() throws IOException
IOExceptionpublic void testReplayFlushCommitMarkerWithoutFlushStartMarkerDroppableMemstore() throws IOException
IOExceptionpublic void testReplayFlushCommitMarkerWithoutFlushStartMarkerNonDroppableMemstore() throws IOException
IOExceptionpublic void testReplayFlushCommitMarkerWithoutFlushStartMarker(boolean droppableMemstore) throws IOException
IOExceptionpublic void testReplayRegionOpenEvent() throws IOException
IOExceptionpublic void testReplayRegionOpenEventAfterFlushStart() throws IOException
IOExceptionpublic void testSkippingEditsWithSmallerSeqIdAfterRegionOpenEvent() throws IOException
IOExceptionpublic void testReplayFlushSeqIds() throws IOException
IOExceptionpublic void testSeqIdsFromReplay() throws IOException
IOExceptionpublic void testSecondaryRegionDoesNotWriteRegionEventsToWAL() throws IOException
IOExceptionpublic void testRegionReadsEnabledFlag() throws IOException
IOExceptionpublic void testWriteFlushRequestMarker() throws IOException
IOExceptionpublic void testReplayingFlushRequestRestoresReadsEnabledState() throws IOException
IOExceptionpublic void testReplayingFlushRestoresReadsEnabledState() throws IOException
IOExceptionpublic void testReplayingFlushWithEmptyMemstoreRestoresReadsEnabledState() throws IOException
IOExceptionpublic void testReplayingRegionOpenEventRestoresReadsEnabledState() throws IOException
IOExceptionpublic void testRefresStoreFiles() throws IOException
IOExceptionpublic void testReplayBulkLoadEvent() throws IOException
IOExceptionpublic void testReplayingFlushCommitWithFileAlreadyDeleted() throws IOException
IOExceptionpublic void testReplayingCompactionWithFileAlreadyDeleted() throws IOException
IOExceptionpublic void testReplayingRegionOpenEventWithFileAlreadyDeleted() throws IOException
IOExceptionpublic void testReplayingBulkLoadEventWithFileAlreadyDeleted() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.