Skip to content

server: enhance the ts check considering commit timestamp #57165

Closed

Description

@cfzjywxk

Enhancement

After a write transaction is committed, TiDB, as the transaction coordinator, knows the commit_ts used for the write transaction. This timestamp can be used as a reference to check the validity of subsequent read requests’ read_ts. In theory, all read requests occurring after the write transaction should use a read_ts greater than the previous known transaction’s commit_ts.

This approach could help to expose issues like #56809 more quickly.

Besides, this timestamp could be considered for updating the tidb_low_resolution_ts with the known valid timestamps encountered.

Activity

  1. added
    type/enhancementThe issue or PR belongs to an enhancement.
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Nov 6, 2024
  2. added a commit that references this issue on Feb 13, 2025
    0c99ccb
  3. added a commit that references this issue on May 6, 2025
    f5e753f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.sig/transactionSIG:Transactiontype/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