Skip to content

[Bug]: UT TestSpeedupAbortAllTxn times out after logtail reconnect #26008

Closed

Description

@ck89119

Is there an existing issue for the same bug?

Branch Name

issue-25421-main (PR #25872)

Commit ID

daed24135d5818a5842faa06b5b705dd7090d253

Other Environment Information

- Hardware parameters: GitHub Actions runner
- OS type: Ubuntu/x86
- Others: MatrixOne ALL CI, pull_request_target

Actual Behavior

TestSpeedupAbortAllTxn ran for 145.36 seconds and failed with context deadline exceeded.

Before the assertion failed, the CN logtail consumer reported a receive timeout, paused, and repeatedly failed to rebuild its logtail client because the backend connection was closed. The internal SQL executor then reached its deadline.

Failed job: https://github.com/matrixorigin/matrixone/actions/runs/29888345776/job/88823625003

Related combined tracking issue: #25997

Historical occurrences: #20312, #20318, #22781

Expected Behavior

TestSpeedupAbortAllTxn should complete reliably without logtail reconnect or internal SQL execution timing out.

Steps to Reproduce

1. Trigger MatrixOne ALL CI for PR #25872 at commit daed24135d5818a5842faa06b5b705dd7090d253.
2. Run the Ubuntu/x86 Unit Testing job.
3. Observe TestSpeedupAbortAllTxn fail after 145.36 seconds.

Additional information

logtail.consumer.receive.error.from.logtail.client:
  context deadline exceeded
  internal error: ReceiveOneLogtail

[logtail-consumer] rebuild the cn log tail client failed:
  backend connection closed

internal sql executor error:
  context deadline exceeded

Test: TestSpeedupAbortAllTxn
--- FAIL: TestSpeedupAbortAllTxn (145.36s)
FAIL_UT_CASES=TestSpeedupAbortAllTxn,

Activity

  1. added
    kind/bug
    on Jul 22, 2026
  2. added
    severity/s0
    and removed on Jul 22, 2026
  3. added a commit that references this issue on Jul 22, 2026
    27765e7
  4. ck89119 commented on Jul 23, 2026

    @ck89119
    ContributorAuthor

    New occurrence on PR #25335 at commit 42da361e9504cb5c20c02fa897841234e3ac89a2.

    Failed run/job:

    Additional signal from the same UT log immediately before the timeout:

    [TransferPage] write transfer page error (attempt 1/3):
    rename /tmp/.tmp.* transfer/...: invalid cross-device link
    
    [TransferPage] write transfer page failed after 3 retries
    [FlushTableTail] persist transfer page failed, keeping in-memory pages
    

    The exact test passed locally on the same commit:

    .agents/skills/mo-dev/scripts/mo-cgo-test ./pkg/tests/issues \
      -run ^TestSpeedupAbortAllTxn$ -count=1 -timeout=240s
    ok github.com/matrixorigin/matrixone/pkg/tests/issues 16.975s
    

    This is outside PR #25335 planner-only diff. The failed jobs were rerun as attempt 2 of run 29993275918.

  5. XuPeng-SH commented on Jul 28, 2026

    @XuPeng-SH
    Contributor

    should be fixed

  6. ck89119 commented on Jul 29, 2026

    @ck89119
    ContributorAuthor

    Verified on the latest main (f0e5cd7b0da14d94a2cde944f7223824047e8e23).

    The fix from merged PR #26011 (27765e735d914f353073b33d0a061ac96558ad05) is an ancestor of the current main. I reran the original regression test with real process exit statuses:

    • TestSpeedupAbortAllTxn, normal mode, -count=10: passed 10/10 in 132.568s
    • TestSpeedupAbortAllTxn, race mode, -count=3: passed 3/3 in 55.375s

    PR #26011's Ubuntu/x86 UT check also passed. The original logtail reconnect/internal SQL timeout failure is no longer reproducible on the latest main, so this issue can be closed as completed.

  7. added 3 commits that reference this issue on Sep 17, 2026
    03e7286
    c95af9f
    b931ce3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug/utkind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions