Class TestRegionReplicationForFlushMarker
java.lang.Object
org.apache.hadoop.hbase.regionserver.regionreplication.TestRegionReplicationForFlushMarker
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final HBaseTestingUtil
private static final int
private static final byte[]
private static boolean
private static org.apache.hadoop.hbase.TableName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setUp()
static void
tearDown()
void
This test is for HBASE-26960, before HBASE-26960,MemStoreFlusher
does not write theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH
marker to the WAL when the memstore is empty,so if theRegionReplicationSink
request a flush when the memstore is empty, it could not receive theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH
and the replication may be hanged.
-
Field Details
-
CLASS_RULE
-
FAMILY
-
QUAL
-
HTU
-
NB_SERVERS
- See Also:
-
tableName
-
startTest
-
-
Constructor Details
-
TestRegionReplicationForFlushMarker
public TestRegionReplicationForFlushMarker()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testCannotFlushMarker
This test is for HBASE-26960, before HBASE-26960,MemStoreFlusher
does not write theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH
marker to the WAL when the memstore is empty,so if theRegionReplicationSink
request a flush when the memstore is empty, it could not receive theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH
and the replication may be hanged. After HBASE-26768,when theRegionReplicationSink
request a flush when the memstore is empty,even it does not writes theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH
marker to the WAL,we also replicate theWALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH
marker to the secondary region replica.- Throws:
Exception
-
createTable
- Throws:
Exception
-