Repository navigation
fix(frontend): handle missing subscriber accounts in SHOW PUBLICATIONS - #32901
mergify[bot] merged 1 commit into
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Queue requested — the merge queue status continues in this comment ↓. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 3998b41c54ebcec98be13b091187fdddc117e8d6
Assessment: approve
SHOW PUBLICATIONS now omits subscriber IDs absent from the account lookup and logs one warning per affected publication. The existing lookup preserves account identity, and publication metadata, live subscriber ordering, and catalog error handling are preserved.
Model: gpt-6.2-sol / xhigh
Session: 01a1ee7f-fdcb-7b83-ad57-3b17a0e9d494 · slot 1 · generation 1
Validation:
-
Verified the frozen head, merge base, clean checkout, patch identity, whitespace, and runtime isolation. See scope.log, diff-check.log, preflight.log and checks/1795020972611828277-3.json, checks/1795020972681946044-2.json and checks/1795020972612125864-3.json.
-
TestShowPublicationsAccountResolution and both same-instance passes of TestShowPublicationsMissingAccountsSQL passed. The public test checked SHOW and SHOW LIKE, unchanged orphan rows, a healthy subscription read, and cleanup. The log records warnings only for affected publications. See show-publications.log and checks/1795021172350049883-2.json.
-
The frozen CI snapshot reports success for the x86 unit tests and both multi-CN BVT jobs. All four discussion entries are accounted for.
Limitations:
- The embedded SQL test seeds the orphan state in a single CN. Issue #32900 tracks how DROP ACCOUNT can leave that state.
✅ Merged into
|
…UBLICATIONS (#32902) ## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue #32899 4.2-dev counterpart of #32901, using this branch's existing test fixture APIs. ## What this PR does / why we need it: `SHOW PUBLICATIONS` dereferences the account-ID lookup for every subscribed account without checking that it exists. A persisted subscription referencing a deleted account makes the whole statement panic, including unrelated healthy publications owned by the same publisher. MOI's Sample Data startup can therefore fail with Error 20101. Keep each selected publication and its metadata, but omit subscriber IDs absent from the account lookup from `subscribed_accounts`. Keep the existing sorted names for live accounts and emit one diagnostic warning per affected publication. Do not fall back to the stored account name: a recreated same-name account has a different identity and must not inherit the old subscription. This is a read-side resilience fix only. It does not mutate `mo_subs`, change publication authorization, mask catalog query errors, or fix orphan creation tracked by issue #32900. No schema migration or operational data cleanup is included. Tests cover healthy sorted subscribers, no subscribers, missing-only and mixed subscribers, same-name/new-ID identity, preserved publication rows/metadata, catalog errors and cancellation. A public MySQL integration test reuses the existing three-CN fixture (MySQL client on CN0), injects only the observed orphan precondition via its internal executor, and verifies plain SHOW/LIKE, unchanged catalog rows and healthy subscription reads. It explicitly checks cleanup and repeats on the same instance. This supplies the public SQL proof without adding a probabilistic DROP ACCOUNT race or a production bypass for catalog write protection. Tested with (macOS arm64; Go 1.26.4; repository-built native libraries): ```sh .agents/skills/mo-dev/scripts/mo-cgo-test -v -count=1 -timeout=180s -run '^TestShowPublicationsAccountResolution$' ./pkg/frontend .agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=600s ./pkg/frontend .agents/skills/mo-dev/scripts/mo-cgo-test -v -count=1 -timeout=360s -run '^TestShowPublicationsMissingAccountsSQL$' ./pkg/embed git diff --check ``` All passed locally on 4.2-dev base `54956dc8e9e1315e38956b0ba3662e3f8a51b6c4`. The frontend package passed in 15.046s; the SQL test passed both repetitions in 14.16s. The identical unsafe lookup was also reproduced on unchanged main: healthy controls passed and the missing-account unit case panicked. No QA/production data or deployment was changed. GitHub CI is separate and may still be pending. Approved-by: XuPeng-SH <[email protected]>
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: issue #31155 Fixes #31155 ## What this PR does / why we need it: POW/POWER with a finite negative base and a finite non-integer exponent is mathematically undefined in the real domain, but MatrixOne silently returned a row-local NULL. This PR makes the Power operator reject such arguments with the typed DOUBLE out-of-range error (MySQL 1690, SQLSTATE 22003, `data out of range: data type float64, DOUBLE value is out of range in 'pow(-2,0.5)'`), keeping the #28375 row-local NULL semantics untouched for overflow/NaN-input (EXP/COT) cases. It also carries a CI fix found by this PR's own required `-race` UT job: `gc/v3.buildTableExistenceMap` read each table catalog entry's MVCC chain delete timestamp via `GetDeleteAtLocked` without the entry lock, racing `DBEntry.DropTableEntryByID` (entry write lock -> `DropEntryLocked` -> `DeleteLocked` -> `InsertLocked`), reported three times in `TestDataBranchDiffAcrossCheckpointGCAndRestart/gc_checkpoint_restart`. The GC reader now takes the same entry's read lock around the delete-at snapshot; no IO, callback, or extra lock inside the critical section, no live-table protection change. The branch now also preserves CI failure observability for the UT-shard cleanup deadline that still fails this job's `pkg/tests/issues` run on both known CI attempts (its underlying wait owner is not determined by any retained artifact): a bounded test-only diagnostic in the shared fixture, added to the failing error path only. It changes no product code, budget, assertion, expected values, or cleanup semantics and does not claim to fix that cleanup failure or any 31401 behavior — it records the cleanup SQL's start/end/elapsed/error plus a bounded 16KiB goroutine snapshot before the original assert so a future CI occurrence retains additional evidence; the bounded snapshot may truncate or miss the actual wait owner. Scope (5 Power files + 2 GC files + 3 test-only CI files): - `pkg/sql/plan/function/func_binary.go`: Power evaluates rows first and rejects domain-invalid arguments with the typed error; empty-batch and masked/selected-row safety preserved, NULL inputs stay NULL, integer exponents valid, #28375 semantics unchanged. - `pkg/sql/plan/function/func_binary_test.go`: focused unit coverage for the typed rejection and preserved semantics. - `test/distributed/cases/function/func_math_power.test` and `func_math_power.result`: BVT coverage incl. the prepared-statement overflow-NULL statement before the domain cases, with canonical out-of-range goldens. - `pkg/sql/compile/tp_allocation_reuse_test.go`: real prepared-TP consumer regression - one-constructed `power(v-2, 0.5)` projection on the reused TableScan->Filter->Projection prepared pipeline; the typed moerr reaches the caller, the failed batch is never published, the SAME compiled executor recovers exact `0/1` results. - `pkg/vm/engine/tae/db/gc/v3/exec_v1.go`: `buildTableExistenceMap` holds the table entry's RLock across `GetDeleteAtLocked`/`GetID`. - `pkg/vm/engine/tae/db/gc/v3/executor_test.go`: owner regression `TestBuildTableExistenceMapConcurrentCatalogDrop` - a real mock-factory catalog and txn manager; 200 concurrent `buildTableExistenceMap` snapshots against 12 serial real `DBEntry.DropTableEntryByID` drops. Every transaction the test starts is registered in its mock txn store (DB entry, table entries, and each dropped entry, exactly like the catalog mock), finalized with explicit `Commit(ctx)`/`Rollback(ctx)` on every path, and snapshots taken under `ownedMu` are released before fatal assertions so `FailNow` cannot deadlock the cleanup net. - `pkg/tests/issues/issue_31401_scalar_test.go` (8th file, test-only): inside the shared `cleanupSQL` helper, when the cleanup statement already returned an error, one bounded 16KiB `runtime.Stack` snapshot plus the statement's start/end/elapsed/error/cleanup-ctx error are logged before the unchanged `assert.NoErrorf`; the successful result, both original cleanup budgets, the returned error, and the guarded deferred cleanup ordering retain their existing semantics. This is measurement-only: it does not alter or interpret any result, and no cleanup failure is claimed fixed. - `pkg/objectio/arena_pool_test.go`: replace the burst-reaping test's scheduler-sensitive real-time warmup with controlled `testing/synctest` normal and deliberately delayed first-fire schedules. The actual pool reaper still runs; final synchronization includes buffer frees after the pool unlock. Snapshots release the pool lock before fatal assertions, and borrowed arenas and bubble-owned timers have explicit cleanup. - `pkg/embed/cdc_control_status_test.go`: bound only the initial idempotent, read-only `GetClusterState` fixture setup to three attempts on the same two-minute context, retrying only `errors.Is(err, dragonboat.ErrTimeout)`. Other errors, persistent timeouts and cancellation still fail; claims, heartbeats, writes and their assertions are unchanged. Seven deterministic cases check request bounds, error identity, context identity and cancellation. The HAKeeper stall's underlying cause remains UNKNOWN. Verification performed: - Focused owning unit suite for the Power change; the full TP-reuse trio `TestTPReusePowerProjectionDomainErrorRecovery|TestTPReusableOperatorsAllocationScope|TestTPReusablePipelineQueries` in the CI UT-matching mode via the tree's `mo-cgo-test` wrapper: `CGO_ENABLED=1 .agents/skills/mo-dev/scripts/mo-cgo-test -race -short -tags matrixone_test -count=1 -v -timeout=10m -run '^(TestTPReusePowerProjectionDomainErrorRecovery|TestTPReusableOperatorsAllocationScope|TestTPReusablePipelineQueries)$' ./pkg/sql/compile` => all PASS, 0 data-race reports, process returncode 0. - The GC owner regression in the fatal-cleanup-hardened form, same matching mode: `CGO_ENABLED=1 .agents/skills/mo-dev/scripts/mo-cgo-test -race -short -tags matrixone_test -count=1 -v -timeout=10m -run '^TestBuildTableExistenceMapConcurrentCatalogDrop$' ./pkg/vm/engine/tae/db/gc/v3` => one RUN / one PASS, 0 data-race reports, process returncode 0, source/native SHAs unchanged around the run (receipts retained). - The exact CI-failed GC target with the accepted fix at its recorded validation base (reused because its executed code paths and native inputs are unchanged): `CGO_ENABLED=1 .agents/skills/mo-dev/scripts/mo-cgo-test -race -short -tags matrixone_test -count=1 -v -run '^TestDataBranchDiffAcrossCheckpointGCAndRestart$/^gc_checkpoint_restart$' ./pkg/embed` => PASS (`ok github.com/matrixorigin/matrixone/pkg/embed`), 0 data-race reports. - This batch's retained local matching run of `^TestIssue31401ScalarRefreshProgress$` used `-race -short -tags matrixone_test -count=1 -v`: process RC0, 17 RUN / 17 PASS including the parent and all 16 modes. It was a local non-reproduction at the recorded validation revision, reused for unchanged executed paths; the newly added diagnostic's error branch was not exercised by that passing run. Another PR's local probe is not counted as an additional own-batch pass. The original CI failure's wait owner remains UNKNOWN, and the diagnostic does not fix or explain it. The retained CI artifacts remain truncated, with omitted stderr/link/scratch evidence. - The branch was linearly rebased onto the current upstream main (`035af9968069 fix(frontend): handle missing subscriber accounts in SHOW PUBLICATIONS (#32901)`) with no merge commits; the eight published files remain byte-identical to their accepted blobs; the two additional changes are the arena and CDC test fixtures described above. - Current official test-aware static-analysis closure at main `035af996806917b23d9428695e0295b65cb16356`: **170 required packages, all covered**. The previous 169-package closure comprised 107 identity-qualified reused analyses, 4 owner receipts and 58 fresh package checks. Adding the arena test selects `pkg/objectio`; changing the CDC test invalidates the previous `pkg/embed` proof. The final closure therefore has 168 still-valid analyses plus fresh pinned dual-checker passes for `./pkg/objectio` and `./pkg/embed` (both original process RC0, `0 issues.`). The official inventory and selector were refreshed for the actual test imports; native/configuration identities and unchanged analysis inputs qualify the reused evidence. No repository-wide lint fallback, disabled checker or suppression was used. Executed current missing-package command (58 explicit packages, original RC0 for the fatal two-checker make target): ```sh CGO_ENABLED=1 make static-check-selected STATIC_CHECK_PACKAGES='./cmd/mo-inspect ./cmd/mo-service ./cmd/mo-tool ./pkg/backup ./pkg/bootstrap ./pkg/bootstrap/versions/v1_2_0 ./pkg/bootstrap/versions/v2_0_0 ./pkg/bootstrap/versions/v2_0_1 ./pkg/bootstrap/versions/v2_0_2 ./pkg/bootstrap/versions/v2_2_0 ./pkg/bootstrap/versions/v3_0_0 ./pkg/bootstrap/versions/v4_0_0 ./pkg/bootstrap/versions/v4_0_7 ./pkg/cnservice ./pkg/datasync ./pkg/embed ./pkg/frontend ./pkg/frontend/test/mock_moserver ./pkg/fulltext/plugin/iscp ./pkg/fulltext2/plugin/iscp ./pkg/indexplugin/iscp ./pkg/iscp ./pkg/proxy ./pkg/publication ./pkg/sql/colexec/apply ./pkg/sql/colexec/mergeblock ./pkg/sql/colexec/multi_update ./pkg/sql/colexec/preinsert ./pkg/sql/colexec/productl2 ./pkg/sql/colexec/table_clone ./pkg/sql/colexec/table_function ./pkg/tests/arrowload ./pkg/tests/dml ./pkg/tests/issues/internal/joinspill ./pkg/tests/issues/isolated ./pkg/tests/partition ./pkg/tests/service ./pkg/tests/shard ./pkg/tests/sqlintegration ./pkg/tests/sqlintegration/multicn ./pkg/tests/testutils ./pkg/tests/txn ./pkg/tests/upgrade ./pkg/tnservice ./pkg/txn/storage/tae ./pkg/util/status ./pkg/util/test ./pkg/vectorindex/hnsw/plugin/iscp ./pkg/vectorindex/ivfflat/plugin/iscp ./pkg/vm/engine/disttae ./pkg/vm/engine/tae/db ./pkg/vm/engine/tae/db/test ./pkg/vm/engine/tae/db/test/compatibility ./pkg/vm/engine/tae/db/testutil ./pkg/vm/engine/tae/rpc ./pkg/vm/engine/tae/testutils/config ./pkg/vm/engine/test ./pkg/vm/engine/test/testutil' ``` The separate current issues-owner command was `CGO_ENABLED=1 make static-check-selected STATIC_CHECK_PACKAGES=./pkg/tests/issues`, original RC0. Earlier valid function/compile/GC owner checks and the 107 unaffected analyses were reused only after source/native/config and dependency closure checks; no Go tests were repeated for this diagnostic-only timestamp move. Additional executed missing-owner checks (each original process RC0, repository-pinned molint and golangci-lint): ```sh CGO_ENABLED=1 make static-check-selected STATIC_CHECK_PACKAGES=./pkg/objectio CGO_ENABLED=1 make static-check-selected STATIC_CHECK_PACKAGES=./pkg/embed ``` Additional matching verification: - Arena burst parent and its two controlled-clock schedules: `CGO_ENABLED=1 .agents/skills/mo-dev/scripts/mo-cgo-test -mod=readonly -count=1 -short -v -tags matrixone_test -covermode=set -run '^TestArenaBurstReleasedWhileStillActive$' ./pkg/objectio` => original process RC0, 3 RUN/PASS; adjacent timer-contract tests also passed once. The earlier failing local variants remain recorded. - `CGO_ENABLED=1 .agents/skills/mo-dev/scripts/mo-cgo-test -race -short -tags matrixone_test -count=1 -v -timeout=15m -run '^(TestCDCSourceGenerationGuardAcrossCN|TestCDCInitialClusterStateReadinessBounds)$' ./pkg/embed` => original process RC0, 14 RUN including seven deterministic helper cases and the real cross-CN parent/subtests. An initial import-path setup failure had RC1 and zero selected tests; it was corrected before this successful run. These local passes do not establish CI success or explain the HAKeeper stall. <details> <summary>Current official test-aware required package selection (170 literal packages; selection, not a claim that all 170 were rerun)</summary> ```text ./cmd/mo-inspect ./cmd/mo-object-tool/ckp ./cmd/mo-service ./cmd/mo-tool ./pkg/backup ./pkg/bootstrap ./pkg/bootstrap/versions/v1_2_0 ./pkg/bootstrap/versions/v2_0_0 ./pkg/bootstrap/versions/v2_0_1 ./pkg/bootstrap/versions/v2_0_2 ./pkg/bootstrap/versions/v2_2_0 ./pkg/bootstrap/versions/v3_0_0 ./pkg/bootstrap/versions/v4_0_0 ./pkg/bootstrap/versions/v4_0_7 ./pkg/cdc ./pkg/cnservice ./pkg/datasync ./pkg/embed ./pkg/fileservice ./pkg/frontend ./pkg/frontend/test/mock_moserver ./pkg/fulltext/plugin ./pkg/fulltext/plugin/compile ./pkg/fulltext/plugin/iscp ./pkg/fulltext/plugin/plan ./pkg/fulltext/plugin/search ./pkg/fulltext2 ./pkg/fulltext2/plugin ./pkg/fulltext2/plugin/compile ./pkg/fulltext2/plugin/idxcron ./pkg/fulltext2/plugin/iscp ./pkg/fulltext2/plugin/plan ./pkg/fulltext2/plugin/search ./pkg/indexplugin ./pkg/indexplugin/all ./pkg/indexplugin/iscp ./pkg/indexplugin/plan ./pkg/iscp ./pkg/objectio ./pkg/partitionprune ./pkg/predefine ./pkg/proxy ./pkg/publication ./pkg/sql/colexec ./pkg/sql/colexec/adaptivetop ./pkg/sql/colexec/apply ./pkg/sql/colexec/dedupjoin ./pkg/sql/colexec/deletion ./pkg/sql/colexec/dependent ./pkg/sql/colexec/dispatch ./pkg/sql/colexec/external ./pkg/sql/colexec/fill ./pkg/sql/colexec/filter ./pkg/sql/colexec/fuzzyfilter ./pkg/sql/colexec/group ./pkg/sql/colexec/hashbuild ./pkg/sql/colexec/hashjoin ./pkg/sql/colexec/icebergwrite ./pkg/sql/colexec/indexbuild ./pkg/sql/colexec/insert ./pkg/sql/colexec/intersect ./pkg/sql/colexec/intersectall ./pkg/sql/colexec/limit ./pkg/sql/colexec/lockop ./pkg/sql/colexec/loopjoin ./pkg/sql/colexec/merge ./pkg/sql/colexec/mergeblock ./pkg/sql/colexec/mergecte ./pkg/sql/colexec/mergedelete ./pkg/sql/colexec/mergeorder ./pkg/sql/colexec/mergerecursive ./pkg/sql/colexec/mergetop ./pkg/sql/colexec/minus ./pkg/sql/colexec/minusall ./pkg/sql/colexec/mongoscan ./pkg/sql/colexec/multi_update ./pkg/sql/colexec/offset ./pkg/sql/colexec/order ./pkg/sql/colexec/output ./pkg/sql/colexec/partition ./pkg/sql/colexec/postdml ./pkg/sql/colexec/preinsert ./pkg/sql/colexec/preinsertsecondaryindex ./pkg/sql/colexec/preinsertunique ./pkg/sql/colexec/product ./pkg/sql/colexec/productl2 ./pkg/sql/colexec/projection ./pkg/sql/colexec/rightdedupjoin ./pkg/sql/colexec/runtimefilter ./pkg/sql/colexec/sample ./pkg/sql/colexec/shuffle ./pkg/sql/colexec/spillutil ./pkg/sql/colexec/table_clone ./pkg/sql/colexec/table_function ./pkg/sql/colexec/table_scan ./pkg/sql/colexec/timewin ./pkg/sql/colexec/top ./pkg/sql/colexec/unionall ./pkg/sql/colexec/value_scan ./pkg/sql/colexec/vectorquery ./pkg/sql/colexec/vectorscan ./pkg/sql/colexec/window ./pkg/sql/compile ./pkg/sql/compile/siriusbridge ./pkg/sql/crt ./pkg/sql/internal/ordersites ./pkg/sql/internal/topsites ./pkg/sql/plan ./pkg/sql/plan/explain ./pkg/sql/plan/function ./pkg/sql/plan/rule ./pkg/sql/plan/substrait ./pkg/sql/util ./pkg/tests/arrowload ./pkg/tests/dml ./pkg/tests/issues ./pkg/tests/issues/internal/joinspill ./pkg/tests/issues/isolated ./pkg/tests/partition ./pkg/tests/service ./pkg/tests/shard ./pkg/tests/sqlintegration ./pkg/tests/sqlintegration/multicn ./pkg/tests/testutils ./pkg/tests/txn ./pkg/tests/upgrade ./pkg/tnservice ./pkg/tools/checkpointtool ./pkg/tools/checkpointtool/interactive ./pkg/txn/storage/tae ./pkg/util/status ./pkg/util/test ./pkg/vectorindex/cagra/plugin ./pkg/vectorindex/cagra/plugin/plan ./pkg/vectorindex/cagra/plugin/search ./pkg/vectorindex/hnsw ./pkg/vectorindex/hnsw/plugin ./pkg/vectorindex/hnsw/plugin/iscp ./pkg/vectorindex/hnsw/plugin/plan ./pkg/vectorindex/hnsw/plugin/search ./pkg/vectorindex/idxcron ./pkg/vectorindex/indexfile ./pkg/vectorindex/ivfflat ./pkg/vectorindex/ivfflat/plugin ./pkg/vectorindex/ivfflat/plugin/iscp ./pkg/vectorindex/ivfflat/plugin/plan ./pkg/vectorindex/ivfflat/plugin/search ./pkg/vectorindex/ivfpq ./pkg/vectorindex/ivfpq/plugin ./pkg/vectorindex/ivfpq/plugin/plan ./pkg/vectorindex/ivfpq/plugin/search ./pkg/vm/engine/ckputil ./pkg/vm/engine/disttae ./pkg/vm/engine/disttae/cache ./pkg/vm/engine/disttae/logtailreplay ./pkg/vm/engine/readutil ./pkg/vm/engine/tae/db ./pkg/vm/engine/tae/db/checkpoint ./pkg/vm/engine/tae/db/gc/v3 ./pkg/vm/engine/tae/db/test ./pkg/vm/engine/tae/db/test/compatibility ./pkg/vm/engine/tae/db/testutil ./pkg/vm/engine/tae/logtail ./pkg/vm/engine/tae/logtail/service ./pkg/vm/engine/tae/rpc ./pkg/vm/engine/tae/testutils/config ./pkg/vm/engine/test ./pkg/vm/engine/test/testutil ./pkg/vm/pipeline ./test/manual/issue28140 ``` </details> - The real typed 1690/22003 wire outcome, same-connection recovery and the 111/111 nometa + strict-metadata BVT passes were validated on the real binary built from these same-semantics source bytes at base 43addc1; that older run is evidence for the SQL semantics and the byte-frozen BVT goldens, not a claim about a binary of current main. CI note: CI must be re-observed after the PR head is updated; there is no green guarantee at publication time and no historical attempt is claimed as the current state. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
issue #32899
What this PR does / why we need it:
SHOW PUBLICATIONSdereferences the account-ID lookup for every subscribedaccount without checking that it exists. A persisted subscription referencing a
deleted account makes the whole statement panic, including unrelated healthy
publications owned by the same publisher. MOI's Sample Data startup can therefore
fail with Error 20101.
Keep each selected publication and its metadata, but omit subscriber IDs absent
from the account lookup from
subscribed_accounts. Keep the existing sortednames for live accounts and emit one diagnostic warning per affected publication.
Do not fall back to the stored account name: a recreated same-name account has
a different identity and must not inherit the old subscription.
This is a read-side resilience fix only. It does not mutate
mo_subs, changepublication authorization, mask catalog query errors, or fix orphan creation
tracked by issue #32900. No schema migration or operational data cleanup is
included.
Tests cover healthy sorted subscribers, no subscribers, missing-only and mixed
subscribers, same-name/new-ID identity, preserved publication rows/metadata,
catalog errors and cancellation. A public MySQL integration test reuses the
single-CN fixture, injects only the observed orphan precondition via its internal
executor, and verifies plain SHOW/LIKE, unchanged catalog rows and healthy
subscription reads. It explicitly checks cleanup and repeats on the same instance.
This supplies the public SQL proof without adding a probabilistic DROP ACCOUNT
race or a production bypass for catalog write protection.
Tested with (macOS arm64; Go 1.27.1; repository-built native libraries):
All passed locally. The regression was first run against unchanged main
87c44445f83e308ef12dd7ca0e570cec1e6690d9: healthy controls passed and themissing-account case reproduced the nil-pointer panic. The frontend package
passed in 29.851s; the SQL test passed both repetitions in 5.89s. No QA/production
data or deployment was changed. GitHub CI is separate and may still be pending.