Skip to content

[Bug]: DROP DATABASE fails with lock table bind changed after controlled 3 CN to 1 CN scale-down #29447

Closed

Description

@slyunnn

Summary

After a controlled 3 CN to 1 CN topology comparison for ordered-set percentile, DROP DATABASE consistently returns ERROR 20702: lock table bind changed. The ordered-set query results themselves pass; the failure occurs only during test cleanup.

Environment

  • Branch: main
  • MatrixOne commit: 9b7c2c2
  • Deployment: TKE distributed cluster; workload first runs with 3 Working CN, then scales to 1 Working CN using the same 10,000,000-row fixture. This is controlled scale-down, not Chaos or CloneSet replacement.
  • Test scripts: mo-nightly-regression commits a7d7890d690ae8b43b492f409da275a6dc7d70be and 8041f318ae57535411f2684bcc6a3db3914113eb

Reproduction

  1. Start the distributed TKE cluster with 3 Working CN.
  2. Create the 10,000,000-row ordered-set percentile fixture, including hot/cold skew_g groups.
  3. Execute percentile_cont and percentile_disc for ASC/DESC and p=.25/.5/.95; compare the 3-CN results with the same fixture after controlled scale-down to 1 CN.
  4. After all result and topology assertions pass, execute DROP DATABASE for the temporary test database.

Expected

DROP DATABASE succeeds and the test finishes successfully.

Actual

Both executions completed all functional assertions successfully, including same-fixture 3-CN to 1-CN comparison, then failed at identical cleanup SQL:

ERROR 20702 (HY000): lock table bind changed

The workflow-level namespace cleanup succeeded in both runs, so the isolated namespace was removed.

Stability

Stable reproduction: 2/2 focused TKE executions on the same MatrixOne main commit.

Scope and related issue

This is not an ordered-set percentile result mismatch: all R029 functional assertions passed before cleanup. It may be related to the LockService/CN-topology class in #28637, but that issue used CloneSet replacement; this reproducer uses controlled 3-to-1 scale-down, so the root cause is not yet confirmed as the same.

Requested investigation

Please investigate LockService binding reconciliation after controlled CN scale-down, specifically why a subsequent DROP DATABASE can return 20702 after otherwise successful distributed aggregate queries.

Activity

  1. added this to the MO-202609 milestone on Sep 28, 2026
  2. added
    kind/bug
    on Sep 28, 2026
  3. added theissue type on Sep 28, 2026
  4. added a commit that references this issue on Oct 16, 2026
    4f9f2e3
  5. assigned and unassigned on Oct 16, 2026
  6. gouhongshen commented on Oct 16, 2026

    @gouhongshen
    Contributor

    Reproduction record from MatrixOne CI (unrelated PR run):

    • Workflow/job/run: MatrixOne ALL CI run 38882194805, job 116916731411 — Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86, attempt 1, head 6a2b64bb829e46429309e8f7743c7956db855cdf (which contains main through b3d6b21fe9, including fix: evict idle lock routes after CN scale-down #30269).
    • Observed failure: pkg/tests/issues/isolated / TestDropDatabaseAfterCNScaleDown — --- FAIL: TestDropDatabaseAfterCNScaleDown (26.50s). This is the isolated embedded-cluster root added by fix: evict idle lock routes after CN scale-down #30269 as the regression test for this issue's bug class (3 CN, warm a global lifecycle lock on every CN, scale down to one survivor, then drop database idle_route_after_scale must succeed without a client retry). In the failing test's output window the survival CN logged ERROR cn-service frontend/session.go:4828 lock table bind changed on a moadmin session at 10:23:20.785561Z — the same ERROR 20702: lock table bind changed class reported here.
    • Why this is not caused by the PR under test (fix: avoid global lineage gate during ALTER COPY preparation #29798): that PR's 27-file delta contains zero changes to pkg/lockservice, pkg/tests/issues/isolated/, pkg/embed, or pkg/frontend production code (git diff origin/main...HEAD -- pkg/lockservice pkg/tests/issues/isolated/ pkg/embed is empty), and the failing test exercises DROP DATABASE/lock-table-bind lifecycle after controlled scale-down, which none of the PR's files are on.
    • The failure therefore looks like this issue's root cause persisting after the fix: evict idle lock routes after CN scale-down #30269 idle-route eviction fix under coverage-run timing, since the new root now fails in UT Coverage where cluster close took ~26.5s of the test's 2-minute context. The raw go test assertion output is not echoed in the job's downloadable log (the job prints only the FAIL summary plus panic-like teardown context).
    • Evidence: job log sections Failed coverage UT packages (FAIL github.com/matrixorigin/matrixone/pkg/tests/issues/isolated) and Failure details (TestDropDatabaseAfterCNScaleDown: --- FAIL (26.50s)).

    Recorded 2026-10-16T11:00Z by the issue-fix loop for PR #29798. Tracked from this PR's CI-blockers comment until verified resolved.

  7. slyunnn commented on Oct 21, 2026

    @slyunnn
    Author

    Regression and extended verification for #29447 (2026-10-21)

    Verification Environment

    • MatrixOne main: a648b13e53cf0a07ff19211203a69e37b2d1dd93 — feat(plan): add opt-in derived view query planning (#30551). The Nightly workflow pinned this full SHA, resolved the commit-a648b13 image to immutable digest sha256:d0e1bcd6b3724ac175096b05ba23e8556973646203ad239b942341e6c0d20797, and deployed it to TKE.
    • TKE topology: 3 CN / 1 TN / 3 Log service pods / 2 Proxy pods, then controlled scale-down to 1 CN with the same fixture. SQL used PyMySQL's MySQL text protocol through Proxy port 6001. Direct CN endpoints were not used for this TKE replay.
    • Local latest-main Go regression used an embedded 3 CN cluster and MySQL text-protocol connections to individual CNs. The separate-process local comparison run used 3 CN / 1 TN / 1 Log service / Proxy, with Proxy 6001 and CN ports 16001/16002/16003, but its binary was built from the earlier 63a964a82fbaae4759cfabb45655e0185bc0979c; it is supporting evidence, not the latest-main acceptance run.
    • Related fix: #30269, merge commit 4f9f2e33c9f5a046936550c884db6c1066d6c749 — fix: evict idle lock routes after CN scale-down.

    What Was Covered

    • OK — On latest main, TestDropDatabaseAfterCNScaleDown passed 3/3 uninstrumented local runs and 10/10 runs with -covermode=atomic over the isolated test and LockService packages. It warms lock routes on all 3 CNs, retires the owner, and asserts the first post-scale DROP DATABASE succeeds without a client retry.
    • OK — Focused TKE run #39539175517 passed on the pinned latest-main image. Its 10,000,000-row report recorded 3 working CN backends before scale-down and 1 afterward, with topology_consistency.pass=true and identical same-fixture result sets.
    • OK — The single-CN phase completed DROP DATABASE IF EXISTS through Proxy 6001 without 20702; its report has status=passed, cleanup_error=null, and no stage failures. The workflow's TKE environment cleanup job also succeeded.
    • OK — The artifact includes before/after cluster manifests and pod restart snapshots: the CN replica count changed from 3 to 1, and surviving pods had 0 restarts. No lock table bind changed or 20702 appears in the collected pod logs.
    • Failed — A prior Linux/x86 UT Coverage job on post-fix code failed this exact test at idle_lock_route_scale_down_test.go:122: the first DROP DATABASE idle_route_after_scale returned Error 20702 (HY000): lock table bind changed. Its diagnostic artifact shows table-id: 2 exhausting the 10s lock retry budget. This is a real test assertion failure, not merely background logging.
    • Not covered — The full Linux/x86 all-package UT Coverage workflow was not rerun on a648b13e; the local coverage loop used macOS/arm64 and only the targeted packages. No direct-CN TKE SQL or separate MOTR replay was performed for this topology-controlled case.

    Findings

    The original TKE scale-down/cleanup scenario now passes on the tested latest-main commit, and the targeted local regression passes repeatedly. However, the post-fix Linux/x86 coverage failure proves the first post-scale DROP DATABASE can still return 20702 under at least one timing/environment condition. The failing lock operation was on table-id: 2 (mo_catalog.mo_tables), while the existing isolated test's explicit route-readiness probe watches mo_feature_registry; this difference is a diagnostic clue, not a confirmed root cause. Please have the MatrixOne development team investigate binding reconciliation and retry exhaustion for catalog DDL after CN owner retirement. No MatrixOne source change is made in this test-only work.

    MOTR / BVT Coverage

    • Existing MatrixOne isolated Go regression TestDropDatabaseAfterCNScaleDown: latest-main 3/3 normal and 10/10 targeted atomic-coverage runs.
    • Existing Nightly topology_consistency workflow: run #39539175517, diagnostic artifact. No new MOTR/BVT file or issue-specific PR was added because SQL alone cannot deterministically control CN lock ownership and the existing Go/Nightly regressions already cover the topology transition.
    • Large-data regression: needed and performed. The reported failure followed the 3 CN → 1 CN transition while reusing a 10,000,000-row fixture; this execution boundary and its cleanup cannot be established by merely increasing rows in a single-node SQL test.

    Final Conclusion

    Partially fixed. The original 10,000,000-row TKE scenario passes on pinned latest main, including the first cleanup DROP DATABASE, but the post-fix Linux/x86 coverage failure of the same first-drop assertion remains unexplained and has not been independently rerun on this exact main commit. MatrixOne service-code investigation belongs to development; our scope is testing and evidence only.

  8. assigned and unassigned on Oct 21, 2026
  9. slyunnn commented on Oct 23, 2026

    @slyunnn
    Author

    Additional catalog DDL evidence after abrupt CN loss (2026-10-23)

    Following the separate 20702 observation during #30574 verification, I reproduced catalog DDL failures without running mo_dump or restoring a dump. I am adding the evidence here to avoid a duplicate report; equivalence to this issue's controlled scale-down root cause is not confirmed.

    Environment

    • Freshly fetched origin/main: bc84bd142600b745503e225cb89cb1526df8d35e — fix(plan): eliminate unobserved sorts below scalar COUNT (#30828); clean source, freshly rebuilt binary, Go 1.27.1, Linux/arm64, TYPECHECK=1. Binary -version and SQL git_version() matched bc84bd1426.
    • Local topology: 2 CN / 1 TN / 1 Log service / Proxy. Proxy 127.0.0.1:6001, CN1 127.0.0.1:16001, CN2 127.0.0.1:16002 were reachable before and after testing. Only the separately running, task-owned CN2 was terminated; CN1/TN/LOG/Proxy remained running.
    • PyMySQL, MySQL text protocol (COM_QUERY), fresh connections for DDL assertions. DDL was actually executed directly through CN1 16001; CN2 16002 handled fixture setup and the active stream. Proxy 6001 was used for version/health/cleanup checks, not for a faulted DDL replay.

    Standalone reproduction sequence

    1. Through CN2, create a uniquely named database and t(id INT PRIMARY KEY), then INSERT one row. Through CN1, verify COUNT(*)=1, SUM(id)=1 and a no-fault CREATE DATABASE / DROP DATABASE control.
    2. Start an unbuffered CN2 query: SELECT result, LPAD(CAST(result AS CHAR),200,'x') FROM generate_series(1,200000) g. Read the first row and confirm the tagged query is still active in SHOW PROCESSLIST before fault injection. No export tool or dump file is involved.
    3. Send SIGKILL only to CN2; verify exit 137. On a fresh CN1 connection, execute a single CREATE DATABASE <unique_offline_name> and record its first result without a client retry. Check the original table remains readable.
    4. Restart CN2 and wait until a fresh connection returns the exact expected git_version(). On fresh CN1 connections, execute one CREATE DATABASE <unique_online_name> and one DROP DATABASE <fixture_name>, recording each first result. SQL connectivity/version readiness is not asserted to prove allocator retirement or complete recovery.

    Observed results

    • 4 serial fault cycles: an initial 3-cycle run plus 1 additional recheck. The 4/4 no-fault create/drop controls passed; source COUNT(*)=1, SUM(id)=1 remained correct after every loss.
    • First CREATE DATABASE while CN2 was offline: 20702, lock table bind changed in 2/4 cycles, with client-observed elapsed times 28.128s and 32.216s; the other 2 passed (21.914s, 0.854s). This is timing/ownership dependent, not a claim of deterministic failure on every kill.
    • First CREATE DATABASE after CN2 became SQL-connectable: 20702 in 1/4 cycles (10.326s); the other 3 passed (10.253s, 0.242s, 0.248s). First post-restart DROP DATABASE passed in 4/4 cycles. Successful later operations do not erase the earlier first-attempt failures.
    • Matching survivor logs include lock retry budget exhausted for backend availability error, retry-budget: 10s, on table-id: 1 (mo_catalog.mo_database) and table-id: 272438 (mo_catalog.mo_database_defaults in this fixture). The latter failed within the internal INSERT INTO mo_catalog.mo_database_defaults (...) belonging to the failed CREATE DATABASE. The wall-clock SQL latency can exceed the logged lock retry budget.
    • All task-created databases were removed. All three endpoints reported the expected version and confirmed no remaining databases with the task prefix. Raw per-attempt JSON and server logs were retained locally. The initial harness emitted PyMySQL finalizer warnings when discarding deliberately interrupted unbuffered cursors; the extra recheck corrected that client cleanup and completed without those warnings. The 20702 evidence above is the actual DDL server response, also matched in server logs.

    Scope and follow-up

    The earlier #30574 restore failed at line 4, CREATE DATABASE, not DROP DATABASE. Its symptom is independent of invoking mo_dump, but an exact shared root cause with #29447 is still unproven: this probe uses abrupt SIGKILL plus restart (2 CN), whereas the original case uses controlled 3 CN → 1 CN retirement. The failing catalog table IDs also differ from the earlier coverage failure on table-id: 2.

    #30269 is already in the tested main. Follow-up #30832 remains open and was not tested here; its description targets acknowledged lock retirement on orderly shutdown and explicitly retains failure detection for abrupt failures. These results do not establish whether that PR resolves this abrupt-loss case. Please confirm whether this variant belongs under #29447 or needs a separate lock-recovery issue.

    No production source, existing test, issue state, assignee or priority label was changed. No duplicate MOTR SQL case was added: the fault/lifecycle boundary needs an integration harness, and SQL-only replay would not reproduce it. No additional TKE/performance or arbitrary larger-data run was performed; the 200,000 generated rows only hold a real stream in flight, while the DDL fixture has one row. This comment is failure evidence / recovery-scope clarification, not acceptance of seamless failover or a new Fixed conclusion.

  10. XuPeng-SH commented on Oct 23, 2026

    @XuPeng-SH
    Contributor

    PR #30832 合并状态更新(2026-10-23)

    PR #30832 已合并(head 6bd96852121915fd2a03e0b1c85bbfb4f46b72cb,merge commit 5fe68a88e48ae115856b18deaeecc4953101a0be)。其目标包括 orderly CN shutdown 时向 allocator 报告完成 drain,并有 PR review 报告称受控 scale-down 回归通过;这些结果来自 PR/review 记录,本轮未在本地复跑。

    这不能验证 issue #29447 的所有场景:该 PR 明确保留 abrupt CN failure / control-plane unavailable 的既有 failure detection;相关评论中的 abrupt-loss 20702 变体也未确认与本 issue 同根因。另有 Mergify 记录显示 CI Required 在 head 6bd9685 失败离队,GitHub 当前 combined status 未返回 checks。因此保留 issue open,仍需针对失败变体和最终合并提交确认。

  11. gouhongshen commented on Oct 23, 2026

    @gouhongshen
    Contributor

    CI reproduction record — TestDropDatabaseAfterCatalogCleanupDuringCNScaleDown (cleanupDuringRetirement variant), 2026-10-23T12:49Z

    • Workflow/job/run: MatrixOne ALL CI run 39949830119 (attempt 1, Mergify merge-queue speculative check, pull_request_target), job 120401431840 — Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86, at queue head b2992ed7f7d0c057729ff7ff868a3179a0e2770f (in-place merge of PR fix(disttae): hand alpha stats workers a detached table stock snapshot #30926 head 6f3a042b8e192f33343a78680f9e633c0d8060f9 with main 5fb586e1429386260b900171f65ffa844f49c981, which contains fix: recover legacy JSONLINE and retire locks on CN shutdown #30832 — the PR that added this cleanup-during-retirement variant of the first-post-scale-DROP fixture).
    • Observed failure: --- FAIL: TestDropDatabaseAfterCatalogCleanupDuringCNScaleDown (189.05s) in pkg/tests/issues/isolated. The survivor CN 2-cn-14005 executed drop database idle_route_after_scale; inside that statement the internal delete from mo_catalog.mo_database_defaults where account_id=0 and database_id=272687 (table-id 272438) exhausted the lock retry budget — lockop/lock_op.go:1734 lock retry budget exhausted for backend availability error {"table-id": 272438, "error": "lock table bind changed", "retry-budget": "10s"} — and surfaced Error 20702 (HY000): lock table bind changed to the client. The assertion the first post-scale DROP must succeed without a client retry (idle_lock_route_scale_down_test.go:160) failed.
    • This matches this issue's documented signature precisely: 20702 on the first DDL after CN scale-down/retirement, lock retry budget exhausted ... retry-budget: 10s on catalog tables, and specifically table-id 272438 = mo_catalog.mo_database_defaults, the same table-id recorded in the 2026-10-23T07:34Z evidence comment above. It also reproduces the still-unexplained coverage-run failure of the first-drop assertion noted in the 2026-10-21 verification comment (that one on the non-cleanup variant, table-id 2). The retry-exhaustion/binding-reconciliation root cause requested there remains unfixed, and this variant adds the second-departing-CN catalog cleanup before origin close.
    • Not caused by PR fix(disttae): hand alpha stats workers a detached table stock snapshot #30926: that PR's complete delta is pkg/vm/engine/disttae/mo_table_stats.go + its test — a detached-snapshot handoff for the statistics collector's alpha workers. It changes no lockservice/lockop, catalog DDL, internal sql executor, heartbeat, or embedded-fixture code the failing statement exercises. The failing test file does not exist anywhere in the PR branch (4f9182f8ac); it only entered this head via main through the merge-queue in-place merge. The same first-drop failure class was already recorded from an unrelated PR's coverage run on 2026-10-16.
    • Evidence: job log sections Failed coverage UT packages / Failure details, and the run's ut-coverage-diagnostics-attempt-1 artifact (ut-coverage-incident.md plus the full failed-test output, where the failure excerpt above is verbatim; assertion at idle_lock_route_scale_down_test.go:160/42).

    Recorded 2026-10-23T12:49Z by the issue-fix loop for PR #30926. Tracked from that PR's CI-blockers comment until verified resolved.

  12. XuPeng-SH commented on Oct 23, 2026

    @XuPeng-SH
    Contributor

    Follow-up on PR #30962 scale-down regression coverage (2026-10-23)

    PR #30962 merged at head 8260bcdfd983e4417f24c5ec11606fafe2db8850 (merge commit 06b8ce7bab7a57003e25c52a45f5712105e71788) and broadens the readiness probe to inspect cached catalog routes before the first post-scale DROP. The final test still only asserts require.NotEmpty(cachedCatalogBinds), however. The fixture retires two CN owners, but this assertion does not prove the captured set contains a route for each departing owner; the later eviction/allocator checks iterate only that captured set. It can therefore pass while validating only one of the two retiring owners.

    Please make the regression sensitive to both owners—for example, assert that the captured pre-retirement binds include both non-survivor service IDs (and explicitly warm a catalog route for each if needed). This is a test-coverage gap in the readiness gate; I am not claiming the merged production fix is incorrect. I could not independently run MatrixOne tests in this workspace.

  13. assigned and unassigned on Oct 26, 2026
  14. slyunnn commented on Oct 26, 2026

    @slyunnn
    Author

    Regression and extended verification for #29447 (2026-10-26)

    Verification Environment

    • MatrixOne latest fetched origin/main: 5fe08a3307e246e1ab9951ab690b50557af0f509 — fix(ci): preserve SCA compatibility and explain full-scan fallback (#31142). The clean test checkout matched this SHA. The Linux/arm64 Go 1.27.1 binary was rebuilt with TYPECHECK=1 and restarted; binary -version, current-start ISCP-Task Start, and SQL git_version()=5fe08a3307 confirmed the running version.
    • Local deployment: 2 CN / 1 TN / 1 Log service / Proxy. Proxy 127.0.0.1:6001, CN1 127.0.0.1:16001, and CN2 127.0.0.1:16002 were all connected and reported the current build. The controlled scale-down regression itself started an isolated embedded 3 CN → 1 CN topology and used MySQL text-protocol SQL connections directly to its CNs. The separate abrupt-loss probe used PyMySQL COM_QUERY directly on CN1/CN2; Proxy was used for health and cleanup verification, not as the original DROP route.
    • Related fixes: #30269, merge 4f9f2e33c9f5a046936550c884db6c1066d6c749 — fix: evict idle lock routes after CN scale-down; #30832, merge 5fe68a88e48ae115856b18deaeecc4953101a0be — fix: recover legacy JSONLINE and retire locks on CN shutdown. Both are included in the tested main.

    What Was Covered

    • OK — TestDropDatabaseAfterCNScaleDown passed in normal and atomic-coverage modes (2/2). It starts 3 CNs, warms catalog lock routes, retires 2 CNs, and requires the first DROP DATABASE on the survivor to succeed without a client retry.
    • OK — TestDropDatabaseAfterCatalogCleanupDuringCNScaleDown passed in both modes (2/2), including transaction cleanup during owner retirement. The two test roots and two modes completed 4/4 with exit status 0.
    • Failed — In the separate abrupt-loss extension, an active 200,000-row stream on CN2 was confirmed with SHOW PROCESSLIST, then CN2 was SIGKILLed (exit 137). CN1's first CREATE DATABASE while CN2 was offline returned 20702: lock table bind changed in 2/2 cycles. After CN2 reached SQL readiness, the first CREATE DATABASE and first DROP DATABASE also returned 20702 in 2/2 cycles each.
    • OK — No-fault DDL and source-row controls passed. The probe removed all databases it created, and Proxy/CN1/CN2 remained connectable with the tested version. One background cron-task 20702 occurred in an embedded test log; it was not the asserted first-DROP result.
    • Not covered — A latest-commit TKE 10,000,000-row replay, Linux/x86 UT Coverage, or direct-Proxy execution of the embedded transition. The existing readiness probe checks cached catalog routes but does not prove that both departing CN IDs are represented; a passing test cannot establish that stronger two-owner condition.

    Findings

    The reported controlled 3 CN → 1 CN first-DROP contract passed on this main, including the cleanup interleaving and atomic instrumentation. The abrupt CN-loss extension still produced client-visible 20702 on catalog DDL. PR #30832 specifically addresses orderly drain; abrupt failures still follow failure detection. These results do not establish that both failure paths share one root cause.

    MOTR / BVT Coverage

    The existing isolated MatrixOne Go tests directly control CN retirement and assert the first SQL DROP. The prior TKE run #39539175517 covered the 10,000,000-row original through Proxy, but used the older a648b13e build and is not a latest-main pass. No duplicate SQL-only MOTR case was added because it cannot deterministically control lock ownership and CN retirement.

    Large-data regression on this latest commit is not required to decide the lock-route contract: owner retirement and route convergence, not row count, trigger it; 1 persisted row covers the controlled transition. The 200,000-row stream was used only to keep the faulted query active, not as a throughput or row-count oracle.

    Final Conclusion

    Partially fixed. Controlled scale-down first-DROP DATABASE passed 4/4 focused latest-main runs. The distinct abrupt-loss catalog DDL path still fails with 20702, and latest Linux/x86/TKE plus both-owner readiness proof remain unverified. The issue remains open for developer assessment; no service source or issue metadata was changed.

  15. assigned and unassigned on Oct 26, 2026
  16. aptend commented on Oct 26, 2026

    @aptend
    Contributor

    请按原始问题范围关闭 #29447。现有证据已经支持关闭,不应再把“双 owner 覆盖”等测试增强建议升级为关闭前置条件。

    本 issue 报告的是受控 3 CN → 1 CN 缩容后,首次 DROP DATABASE 返回 20702。对应修复 #30269、#30832,以及后续 readiness 修正 #30962 均已合并,验收证据也已经存在:

    “双 owner”可以作为后续测试增强独立跟进。该建议本身没有给出最终修复版本在原受控缩容场景下的新失败,不能仅凭潜在覆盖改进继续无限延长本 issue 的验收范围。

    SIGKILL/重启后的 catalog DDL 失败是另一种故障模型,且目前尚未证明与本 issue 同根因。已有的真实失败证据应整理到新的 issue,独立调查和跟踪,不应继续挂在本 issue 下阻塞原问题关闭。

    请关闭本 issue。后续如发现新的故障或原场景的新复现,请另开 issue,附运行版本、最小复现步骤和日志。测试增强建议与新的故障报告都不应继续充当本 issue 的关闭门槛。

  17. assigned and unassigned on Oct 26, 2026
  18. slyunnn commented on Oct 26, 2026

    @slyunnn
    Author

    QA scope correction and closure recommendation — #29447 (2026-10-26)

    Following the developer's scope clarification, I am narrowing the acceptance verdict to the reported original fault: the first DROP DATABASE after a controlled 3 CN → 1 CN scale-down must succeed without client retry.

    The relevant fixes #30269 (4f9f2e33c9f5a046936550c884db6c1066d6c749), #30832 (5fe68a88e48ae115856b18deaeecc4953101a0be), and readiness follow-up #30962 (06b8ce7bab7a57003e25c52a45f5712105e71788) are all ancestors of the verified main commit 5fe08a3307e246e1ab9951ab690b50557af0f509. On that freshly built runtime, TestDropDatabaseAfterCNScaleDown and TestDropDatabaseAfterCatalogCleanupDuringCNScaleDown passed in normal and atomic-coverage modes: 4/4 focused runs, retaining the first-attempt DROP DATABASE assertion. The test topology is the original controlled 3 CN → 1 CN transition, not merely a SQL connectivity check; see the execution record.

    I also correct one statement in my earlier comment: I did not personally rerun Linux/x86, but the existing official Linux/x86 UT job and Linux/x86 Coverage job both completed successfully. Thus “no x86 validation” must not be treated as a closure blocker. The suggested two-departing-owner readiness assertion is worthwhile follow-up test hardening, but no new failure of the original controlled scale-down contract has been shown on the final fix; it is not an acceptance prerequisite.

    The SIGKILL/restart catalog-DDL 20702 observations are real, but they use a different failure model and have not been shown to share the original root cause. They now have an independent investigation issue: #31184. Neither that issue nor a new 10,000,000-row TKE run is needed to decide this lock-route first-DROP contract; the defect depends on owner retirement and route convergence rather than row count.

    Final conclusion for the original scope: Fixed. This supersedes the broader Partially fixed wording in my earlier comment, which conflated the separate abrupt-loss observation with this issue's acceptance criteria. #29447 can be closed; any future reproduction of the controlled first-DROP failure should be reported with its exact build, topology, first-attempt result, and lock-route logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions