public class TestHRegionReplayEvents extends Object
| Modifier and Type | Field and Description |
|---|---|
static Configuration |
CONF |
protected byte[] |
cq |
protected String |
method |
TestName |
name |
protected byte[] |
row |
protected byte[] |
row2 |
protected byte[] |
tableName |
| Constructor and Description |
|---|
TestHRegionReplayEvents() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup() |
void |
tearDown() |
void |
testOnlyReplayingFlushStartDoesNotHoldUpRegionClose()
Tests a case where we replay only a flush start marker, then the region is closed.
|
void |
testRefreshStoreFiles() |
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 TestName name
public static Configuration CONF
protected byte[] tableName
protected String method
protected final byte[] row
protected final byte[] row2
protected byte[] cq
public void setup()
throws IOException
IOExceptionpublic void testRegionReplicaSecondaryCannotFlush()
throws IOException
IOExceptionpublic void testOnlyReplayingFlushStartDoesNotHoldUpRegionClose()
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 testRefreshStoreFiles()
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
IOException