Allow WT_CONN::set_timestamp to accept step_down_ts for planned step-down

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: APIs
    • None
    • Storage Engines - Foundations
    • 3.01
    • SE Foundations - 2026-06-23
    • 2

      As part of the ASYNC step-down initiative, MongoDB needs a way to inform WiredTiger of the exact cutover time for a planned step-down.

      Instead of creating a new API, we are extending the existing set_timestamp API to accept a new timestamp key (step_down_ts). This will act as the initial integration point for the Server team, unblocking them to begin their step-down coordination logic while WT implements the underlying ingest/stable routing logic.

      Acceptance Criteria / Tasks:

      • Modify set_timestamp to parse and accept the step_down_ts=<timestamp>.
      • Store the provided step_down_ts internally (following the existing pattern used for the oldest and stable timestamps).
      • Introduce an internal flag to track that the node has entered the "prepare-to-step-down" transition phase.
      • Update the step-down execution path to clear this transition flag once the step-down is complete.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Sid Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: