Skip to content

[Bug]: TestAppendAndGC2 checkpoint wait chases post-fence WAL LSNs #26031

Closed

Description

@LeftHandCold

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Actual Behavior

TestAppendAndGC2 failed in run 29905103601/job 88874679247 after the 10s checkpoint wait:

target LSN: 201, checkpointed LSN: 203, current LSN: 204, pending LSN count: 1

The target captured by WaitAllCheckpointsFinished has already been checkpointed (203 >= 201), but the helper also re-reads the live global watermark through AllCheckpointsFinished. A later WAL entry (204) therefore makes the predicate false and moves the finish line while the test is waiting.

This is independent of PR #26025: that PR changes only pkg/sql/compile, while the failing test binary has no dependency on that package.

Expected Behavior

The helper must wait for the checkpoint fence captured at entry, rather than require global WAL quiescence after concurrently-created entries.

Steps to Reproduce

Run TestAppendAndGC2 under CI scheduling pressure. The assertion above is the proof state: target completion is true while the live, unrelated watermark has advanced.

Additional information

This differs from closed #22024 (older same-name UT failure) and #19813 (data race). The regression was introduced when #25953 combined the fixed target condition with the dynamic global-quiescence predicate.

Activity

  1. self-assigned this
    on Jul 22, 2026
  2. added
    severity/s0
    and removed on Jul 22, 2026
  3. matrix-meow commented on Jul 22, 2026

    @matrix-meow
    Contributor

    Recurrence: PR #25815 (fix if, main). target LSN: 201, checkpointed LSN: 201, current LSN: 203, pending LSN count: 2.

  4. matrix-meow commented on Jul 22, 2026

    @matrix-meow
    Contributor

    Recurrence: PR #25899 (fix temporal part 2, main). 10.72s.

  5. added a commit that references this issue on Jul 22, 2026
    8111ea8
  6. matrix-meow commented on Jul 22, 2026

    @matrix-meow
    Contributor

    Recurrence: PR #25815 (fix if, main, UT Test job).

  7. added 3 commits that reference this issue on Sep 17, 2026
    e3b8537
    270bbc1
    2372f37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions