Interface TransactionManagerConfiguration.ReaperConfig

Enclosing interface:
TransactionManagerConfiguration

public static interface TransactionManagerConfiguration.ReaperConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    The time the reaper waits after interrupting a cancel worker before declaring the transaction a zombie.
    The time the reaper waits before interrupting a cancel worker that is rolling back a timed-out transaction.
    The interval at which the reaper checks for timed-out transactions.
    int
    The maximum number of zombie transactions before the reaper escalates to ERROR-level logging.
  • Method Details

    • checkPeriod

      @WithDefault("120s") Duration checkPeriod()
      The interval at which the reaper checks for timed-out transactions.
    • cancelWaitPeriod

      @WithDefault("500ms") Duration cancelWaitPeriod()
      The time the reaper waits before interrupting a cancel worker that is rolling back a timed-out transaction.

      When a transaction exceeds its timeout, the reaper schedules a cancel and waits this period before interrupting the cancel worker. In CPU-constrained environments (e.g., containers with strict CPU limits), the default of 500ms may be too aggressive, causing premature zombie transaction declarations.

    • cancelFailWaitPeriod

      @WithDefault("500ms") Duration cancelFailWaitPeriod()
      The time the reaper waits after interrupting a cancel worker before declaring the transaction a zombie.

      After interrupting a cancel worker, the reaper waits this period. If the worker has not completed by then, the transaction is marked as a zombie. In CPU-constrained environments, increasing this value gives the application thread more time to respond to the cancellation.

    • zombieMax

      @WithDefault("8") int zombieMax()
      The maximum number of zombie transactions before the reaper escalates to ERROR-level logging.

      A zombie transaction is one where the cancel worker was unable to roll it back within the configured wait periods. Once this threshold is reached, subsequent zombies are logged at ERROR level instead of WARN.