Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
v4.0.0-rc4 (official docker image registry.cn-shanghai.aliyuncs.com/matrixorigin/matrixone:4.0.0-rc4)
Commit ID
unknown (image tag 4.0.0-rc4)
Other Environment Information
- Hardware parameters: amd64 Linux CI runner (docker-in-docker), single-node MatrixOne launched from the official image
- OS type: Linux
- Others: MySQL protocol on port 6001. The lookup that fails is a sys-account query
SELECT account_name, status, created_time, comments FROM mo_catalog.mo_account WHERE account_name = ?, issued while other test groups concurrently run CREATE ACCOUNT / CREATE DATABASE / DROP DATABASE on the same instance.
Actual Behavior
A query on mo_catalog.mo_account transiently returns no row for an existing, active tenant account — an account on which the two immediately preceding tenant-upgrade steps had just executed DDL successfully (seconds earlier).
Raw state dump from the failing run (2026-07-07; tasks id=26/29 completed against that tenant account, task id=30 then failed to find it; it failed twice — attempts=2 — before the application gave up):
tenant upgrade blocked: task_id=30 target=1.0.0.30 error_class=permanent
error=database account not found
tenant_tasks=[
{id=30 target=1.0.0.30 attempts=2 last_error="database account not found"},
{id=29 target=1.0.0.28 state=completed},
{id=26 target=1.0.0.27 state=completed}]
This is the most damaging of the three sibling reports: the application (reasonably) classifies "account not found" as a permanent error, so a single transient visibility blip permanently blocks that tenant's upgrade pipeline until manual repair.
Expected Behavior
mo_catalog.mo_account must consistently return committed, existing accounts. An account that just executed statements successfully cannot be absent from the catalog moments later.
Steps to Reproduce
No minimal standalone repro yet — observed as a low-frequency race under the MOI integration suite's tenant-upgrade tests with concurrent multi-tenant DDL on the same instance. Evidence trail: matrixorigin/matrixflow#12822 (internal, signature 3); CI job with raw logs: https://github.com/matrixorigin/matrixflow/actions/runs/28845823239/job/85549556753 (internal).
Additional information
Likely the same visibility root class as the sibling reports filed alongside this one (transient FK-parent-not-visible Error 1452, and transient Unknown database Error 1049) — three facets of committed-object visibility under concurrent multi-tenant DDL load.
Activity
aptend commentedon Jul 7, 2026
After checking the raw MO logs for the reported run, this does not look like a transient
mo_catalog.mo_accountvisibility issue.For workspace/account
ws_401fc77d:CREATE ACCOUNTcommitted...799b8c, account id 71CREATE DATABASE moicommitted...799bf7workspace created successfully via saga, workspacebf664aad-b678-fb4e-f1e9-b9ae63f61a49, accountws_401fc77dDROP ACCOUNT ws_401fc77dstartedconnectionId 1265,account sys:dump,role moadmin,select ... __mo_account_lock ... for updateconnectionId 1267, accountws_401fc77d:...,CheckTenantsucceeded while drop was runningmo_accountrow deleteddelete from mo_catalog.mo_account where account_name = "ws_401fc77d"...79aee9, state[Committed]Unknown database moimoithere is no tenant ws_401fc77dmo_accountThe
DROP ACCOUNTwas not issued by the tenant worker. It came from a separate sys/admin session:The failing tenant worker was a different session using the tenant account after the committed drop.
Conclusion: the account did not transiently disappear from
mo_catalog.mo_account; it was actually dropped and the drop transaction committed before the lateraccount not found/Unknown databaseerrors. The race is in MOI test/lifecycle coordination: a cleanup/delete path canDROP ACCOUNTwhile tenant upgrade workers are still processing that workspace.Recommended action: move this to the MatrixFlow/MOI side. The test framework / upgrade worker should ensure workspace/account deletion is coordinated with tenant upgrade tasks, or workers should treat deleted workspaces/accounts as lifecycle deletion instead of MO catalog visibility failure.
XuPeng-SH commentedon Jul 7, 2026
@heni02 please help to close it
endlesschasey-ai commentedon Jul 7, 2026
@aptend Confirmed on our side — same conclusion as #25512. The
DROP ACCOUNTcame from MatrixFlow's own test-suite account sweeper (CleanupSuiteOrphanedMOAccounts) running in a paralleltest-python-sdkprocess that finished mid-run and swept alltest_-prefixed accounts, including live ones owned by the concurrently running auto-upgrade suite. Not an MO bug. Closing; fix lands in MatrixFlow. Thanks for the session-level trace — it was decisive.