Class RegionReplicationFlushRequester

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

A helper class for requesting flush on a given region.

In general, we do not want to trigger flush too frequently for a region, so here we will add something like a rate control, i.e, the interval of the two flush request should not be too small.

  • Field Details

  • Constructor Details

  • Method Details

    • getTimer

      private static org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer getTimer()
    • request

      private void request()
    • flush

      private void flush(org.apache.hbase.thirdparty.io.netty.util.Timeout timeout)
    • requestFlush

      void requestFlush(long sequenceId)
      Request a flush for the given region.

      The sequence id of the edit which we fail to replicate. A flush must happen after this sequence id to recover the failure.

    • recordFlush

      void recordFlush(long sequenceId)
      Record that we have already finished a flush with the given sequenceId.

      We can cancel the pending flush request if the failed sequence id is less than the given sequenceId.