[Bug]: DROP ACCOUNT can return 20105 merging a shared mo_tables lock at the minimum row-lock limit
I maintainer di solito rispondono entro 1 giorno
@matrix-meow ci sta già lavorando.
Dal 26/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 1.9k
- Fork
- 312
- Merge medio
- 22h 59m
- PR unite (30g)
- 736
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di matrixorigin/matrixone
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
matrixorigin/matrixone#33363 ·
I maintainer di solito rispondono entro 1 giorno
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
matrixorigin/matrixone#33362 ·
I maintainer di solito rispondono entro 1 giorno
-
SLEEP rejects NULL and negative durations that MySQL acceptsForse già presa @XuPeng-SH l’ha presa 7 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
matrixorigin/matrixone#32653 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: TestChangeWatchProxy loses its first tenant connection during PingContext in Ubuntu CIForse già presa @XuPeng-SH l’ha presa oggi. Apertakind/bug needs-triage
matrixorigin/matrixone#33371 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: TestDaemonClaimSQLRoundTrip exhausts its shared deadline during the stale claim update in Ubuntu CIForse già presa @XuPeng-SH l’ha presa oggi. Apertakind/bug needs-triage
matrixorigin/matrixone#33370 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di matrixorigin/matrixone
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pg-sharding/spqr#3314 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
slavakurilyak/awesome-ai-agents#1051 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
google-gemini/gemini-api-cli#247 ·
I maintainer di solito rispondono entro 1 giorno