[Bug]: DROP ACCOUNT can return 20105 merging a shared mo_tables lock at the minimum row-lock limit
Maintainers usually reply within 1 day
@matrix-meow is already working on this.
Since Nov 26, 2026.
Assessment
This issue has not been assessed yet.
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
#32986 concerns an unrelated account being blocked by a publication on mo_account. This occurrence returned error 20105 while taking a shared range on mo_tables.
Branch Name
4.2-dev
Commit ID
CI tested 2d6b095780b48436bb41e98ba0acba3c9fa70e38 in PR #33295. Its target at that time was bf72bfbc376186521e5e20f74ddfa8bf99b2c404.
Other Environment Information
Ubuntu x86-64, Go 1.26.4, race-enabled unit tests. Failing UT job, second attempt. The first attempt on the same SHA passed the isolated issues package.
Actual Behavior
TestDropAccountWithMinimumRowLockCount created direct_drop, then DROP ACCOUNT direct_drop returned Error 20105 (HY000): not supported: merge range lock not support with shared lock. The failure occurred during the direct DROP, before the restore subscenario.
The local lock service reported table ID 2 (mo_catalog.mo_tables), row count 2 and options Shared-Range-Wait. The inner transaction rolled back and the outer DROP returned the error. The trace does not identify the other holder.
On the clean target commit, the unmodified SQL test passed in isolation. Replaying the same DROP while a second transaction held shared catalog rows reproduced the exact MySQL error 20105.
Expected Behavior
The DROP completes with MaxLockRowCount=1, including when catalog metadata is shared with another transaction. The account is absent afterwards.
Steps to Reproduce
- Run
TestDropAccountWithMinimumRowLockCountin./pkg/tests/issues/isolatedunder the CI unit-test workload. Failure is intermittent. - To reproduce the lock condition independently on the clean target commit, use the existing local lock-service test harness. Let transactions A and B both acquire a shared row lock on key 2 of table 2. Have A acquire a shared range on keys 1 through 3. It returns
ErrMergeRangeLockNotSupport. - Release B and repeat A's range request. The request succeeds.
- For an end-to-end control on the same clean target, use the existing one-CN test fixture with the same row limit and create the same account. After creation, install a test observer on successful locks for table 2. For each shared point held by the original transaction, have one additional transaction acquire the same point in shared mode through the normal local lock service. Hold the additional transaction across the DROP. Seven shared metadata points were joined in this run. The original SQL returned error 20105 on a shared range for table 2. The observer did not inject a lock result or SQL error.
Additional information
The SQL and lock-service controls used the repository CGo test wrapper with Go 1.26.4 on macOS arm64. The controlled SQL reproduction establishes that concurrent catalog readers suffice to trigger this failure in the target branch. The identity of the second holder in the original CI trace is still unknown.
- Dominant language
- Go
- Stars
- 1.9k
- Forks
- 312
- Avg merge
- 22h 59m
- Merged PRs (30d)
- 736
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matrixorigin/matrixone
-
kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
matrixorigin/matrixone#33363 ·
Maintainers usually reply within 1 day
-
kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
matrixorigin/matrixone#33362 ·
Maintainers usually reply within 1 day
-
SLEEP rejects NULL and negative durations that MySQL acceptsPossibly taken @XuPeng-SH claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
matrixorigin/matrixone#32653 ·
Maintainers usually reply within 1 day
-
[Bug]: TestChangeWatchProxy loses its first tenant connection during PingContext in Ubuntu CIPossibly taken @XuPeng-SH claimed this today. Openkind/bug needs-triage
matrixorigin/matrixone#33371 · 1 assignee ·
Maintainers usually reply within 1 day
-
[Bug]: TestDaemonClaimSQLRoundTrip exhausts its shared deadline during the stale claim update in Ubuntu CIPossibly taken @XuPeng-SH claimed this today. Openkind/bug needs-triage
matrixorigin/matrixone#33370 · 1 assignee ·
Maintainers usually reply within 1 day
All issues in matrixorigin/matrixone
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
zalando/postgres-operator#3257 ·
Maintainers usually reply within 2 days
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agentPossibly taken @cvas22 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
influxdata/telegraf#20264 ·
Maintainers usually reply within 1 day
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameOpenaccepted bug wg/enterprise-environment
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/semantic-router#7483 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
stacklok/toolhive-catalog#2076 ·
Maintainers usually reply within 1 day