Class TestRegionReplicationForFlushMarker

java.lang.Object
org.apache.hadoop.hbase.regionserver.regionreplication.TestRegionReplicationForFlushMarker

  • Field Details

  • Constructor Details

  • Method Details

    • setUp

      public static void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public static void tearDown() throws Exception
      Throws:
      Exception
    • testCannotFlushMarker

      public void testCannotFlushMarker() throws Exception
      This test is for HBASE-26960, before HBASE-26960, MemStoreFlusher does not write the WALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH marker to the WAL when the memstore is empty,so if the RegionReplicationSink request a flush when the memstore is empty, it could not receive the WALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH and the replication may be hanged. After HBASE-26768,when the RegionReplicationSink request a flush when the memstore is empty,even it does not writes the WALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH marker to the WAL,we also replicate the WALProtos.FlushDescriptor.FlushAction.CANNOT_FLUSH marker to the secondary region replica.
      Throws:
      Exception
    • createTable

      Throws:
      Exception