Interface CompactionLifeCycleTracker


@LimitedPrivate("Coprocesssor") @Evolving public interface CompactionLifeCycleTracker
Used to track compaction execution.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called after compaction is executed by CompactSplitThread.
    default void
    Called before compaction is executed by CompactSplitThread.
    default void
    Called after all the requested compactions are completed.
    default void
    notExecuted(Store store, String reason)
    Called if the compaction request is failed for some reason.
  • Field Details

  • Method Details

    • notExecuted

      default void notExecuted(Store store, String reason)
      Called if the compaction request is failed for some reason.
    • beforeExecution

      default void beforeExecution(Store store)
      Called before compaction is executed by CompactSplitThread.

      Requesting compaction on a region can lead to multiple compactions on different stores, so we will pass the Store in to tell you the store we operate on.

    • afterExecution

      default void afterExecution(Store store)
      Called after compaction is executed by CompactSplitThread.

      Requesting compaction on a region can lead to multiple compactions on different stores, so we will pass the Store in to tell you the store we operate on.

    • completed

      default void completed()
      Called after all the requested compactions are completed.

      The compaction scheduling is per Store so if you request a compaction on a region it may lead to multiple compactions.