Skip to content

[Bug]: Ubuntu UT job cascades across packages after cluster and checkpoint timeouts #26519

Description

@gouhongshen

Is there an existing issue for the same bug?

  • I searched matrixorigin/matrixone and matrixorigin/CI for waitAnyShardReadyLocked, base-cluster deadline failures, the observed checkpoint tests, and multi-test Ubuntu timeout failures; no matching issue was found.

Branch Name

main

Commit ID

0b8b53d

Other Environment Information

  • GitHub Actions workflow: MatrixOne ALL CI
  • Job: Matrixone CI / UT Test on Ubuntu/x86
  • Runner: Ubuntu 22.04 x86
  • PR head tested: 6961ff16d217e947618f43b92216c944f4559181

Actual Behavior

The Ubuntu UT job reported 20+ failures across unrelated ownership boundaries. The common symptoms include:

  • embedded-cluster tests failing during setup with context deadline exceeded / internal error: waitAnyShardReadyLocked;
  • HAKeeper heartbeats and proposals timing out, Dragonboat processing multiple delayed local ticks, and connections being reset;
  • TestHandleBackup timing out while forcing a checkpoint;
  • TestReadCheckpoint first observing an unexpected checkpoint count and then panicking after dereferencing a nil CheckpointEntry;
  • later authenticated-cluster tests failing after the shared service connection became unavailable.

The final failure list includes engine lease, TAE checkpoint, Iceberg, embed cluster, lock service, and data-branch tests:

TestCheckLeaseFailed, TestReadCheckpoint, TestHandleBackup,
TestIcebergSQLEngineEmbeddedSecurityErrors, TestRunSQLWithFrontend,
TestRowCountOverMySQLProtocol, TestBaseClusterCanWorkWithNewCluster,
TestCreateDB, TestBaseClusterOnlyStartOnce, TestClusterCanStartNewCNServices,
TestCommitWithLockTablesChanged, TestKeepRemoteLockPeerCursorIsFairAcrossSlowRounds,
TestIssue26111DataBranchDatabaseWithCyclicForeignKeys,
TestIssue26121DatabaseOperationsKeepOrdinaryInternalLookingTables,
TestIssue26087ConcurrentDataBranchQuota, ...

Failing job: https://github.com/matrixorigin/matrixone/actions/runs/30620241711/job/91122944038

This was observed while validating PR #26502, but that PR only changes pkg/logservice/snapshot.go and its focused unit test. The same CI job reports the entire pkg/logservice package as PASS (181.18s), including:

TestInitSnapshotMgrReplacesInMemoryView PASS
TestInitSnapshotMgr PASS
TestAddSnapshot PASS

Expected Behavior

The Ubuntu UT job should complete deterministically. A timeout or crash in one package/shared embedded cluster should not cascade into many unrelated test failures, and checkpoint tests should not panic after a failed prerequisite assertion.

Steps to Reproduce

  1. Run the full Ubuntu/x86 make ut workflow using the same package parallelism as MatrixOne ALL CI.
  2. Observe delayed Dragonboat ticks and HAKeeper heartbeat/proposal timeouts during concurrent package execution.
  3. Observe embedded-cluster initialization failing with waitAnyShardReadyLocked and subsequent tests failing immediately or losing their service connection.
  4. Inspect the final FAIL_UT_CASES summary and the TAE checkpoint panic.

Additional information

The run's SCA, BVT, and coverage jobs succeeded; the failure was isolated to the full Ubuntu UT job. Investigation should determine whether runner resource contention, shared embedded-cluster lifecycle, and checkpoint test cleanup/error handling each require separate follow-up fixes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions