Skip to content

[Bug]: TestPartitionBasedShardCanBeCreated flaky — transaction committed or aborted unexpectedly #24618

Closed

Description

@aptend

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

f3c66ef

Other Environment Information

  • Hardware parameters: GitHub Actions runner (Ubuntu/x86)
  • OS type: Linux (Ubuntu)
  • Go version: 1.25.4

Actual Behavior

TestPartitionBasedShardCanBeCreated in pkg/tests/shard failed with error:

the transaction 819c750d0c324b0e18b336436f290f50 has been committed or aborted

Call stack:

shard_storage_test.go:214
shard_storage_test.go:48
shard_test.go:115
shard_test.go:44
shard_storage_test.go:37

Additionally, TestLockNeedUpgrade in pkg/tests/issues also failed in the same run with context deadline exceeded.

Both failures appear to be cluster initialization / transaction management issues — the transaction was unexpectedly committed or aborted before the test could complete its operations.

Expected Behavior

Tests should pass reliably. The transaction should remain active throughout the test's expected lifecycle.

Steps to Reproduce

  1. Run UT tests on Ubuntu/x86 runner: make ut
  2. The flaky failure occurs intermittently in CI

Reproduced in CI run: https://github.com/matrixorigin/matrixone/actions/runs/26471478893/job/77945834554

Additional information

This failure was observed on a PR (#24449) that only modifies pkg/vm/engine/tae/db/merge/ and is unrelated to the shard partition tests, confirming it is a pre-existing flaky test.

Activity

  1. added
    kind/bug
    on May 27, 2026
  2. Torrent2002 commented on Jun 12, 2026

    @Torrent2002
    Contributor
  3. added
    severity/s1
    on Jun 30, 2026
  4. added this to the MO-202607 milestone on Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s1

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions