Skip to content

Enhancement: Add timestamp safety boundary to prevent unreasonable max_ts updates #17916

@ekexium

Description

@ekexium

Subtask of

Enhancement

Currently, max_ts can be updated to any larger value (exceeding current PD TSO). This poses a potential risk where bugs or unsafe usage could set max_ts to an unreasonably large value, causing critical bugs and data corruption.

Proposed Solution:
Add a configurable safety boundary (max_ts_limit) that:

  • Enforces a maximum allowed deviation of max_ts from PD timestamp
  • Regularly syncs with PD to maintain a reasonable limit
  • Prevents updates to unreasonable future timestamps
  • Timestamps that are known to be from PD TSO can bypass the limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.severity/majorsig/transactionSIG: Transactiontype/bugThe issue is confirmed as a bug.type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions