You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: mo-dump multi-database export can place cross-database views before their source tables #30572
Regression and extended verification for #30572 (2026-10-26)
Verification Environment
MatrixOne main: b466f4ae9b74813a4ff93eaf43a6c81e6cbb8b0b — fix: acknowledge ISCP drain before executor runtime starts (#31167). The running binary was rebuilt and restarted; git_version() returned b466f4a at all 3 SQL endpoints.
mo-dumpmain: d9d6375512620f12ff371b8602cc1d10d6f6caa0, locally rebuilt. Associated fix: mo_dump PR #53, merge commit f33f68e554e2d8fb41c8746414e4b12bdc3c1e33, including 3bb8076a01668c710afc0a314d8f1177ed439586 (fix: restore cross-database views after their dependencies).
Topology: 2 CN / 1 TN / 1 Log service / Proxy. Setup, export, native mysql 9.7.1 restore, and query assertions ran separately over MySQL text-protocol routes Proxy 6001, CN1 16001, and CN2 16002.
What Was Covered
OK — Original adverse argument order, -db view_db,data_db: a view in the first database referenced a table in the second. The dump put CREATE TABLE before CREATE VIEW; native-client restore exited 0 on all 3 routes.
OK — The restored source table retained (1,1.25) and (2,2.50); the restored view returned COUNT(*)=2 and SUM(v)=3.75 on each route.
OK — Boundary dependency chain across 3 databases, exported in reverse order (top,mid,data): the table and both views restored successfully, and both view queries returned 2 / 3.75 at all endpoints.
OK — Normal-order control (data,view) also restored with matching table and view results. Every export exited 0 and included MODUMP SUCCESS.
Not covered — A live genuinely cyclic view graph (the server does not ordinarily permit creating this fixture), concurrent DDL during export, and a missing/non-selected source database. The owning tool's view-order tests cover bounded cycle errors; this run does not claim a cross-database snapshot guarantee.
Findings
The previously failing reverse-order export is now restorable on an empty target. The direct, chained, and normal-order scenarios passed 9/9 endpoint/scenario combinations. No partial restore or client error occurred in these controlled fixtures. These were native MySQL-client script replays, not a whole-file packet sent through a driver.
Large-data regression required: No. The defect is dependency ordering between database objects, not row volume or batch/spill behavior. A base table with 2 rows and a 3-database chain crosses the relevant graph boundary without arbitrary data-scale cost.
MOTR / BVT Coverage
The owning mo-dump repository contains direct cross-database ordering tests, and the full go test -count=1 ./... suite passed on this tool revision. The live 9/9 export/restore checks are additional command-level evidence. No duplicate SQL-only MOTR case, issue commit, or weekly PR change was made; the critical behavior is emitted dump order plus tool/client execution.
Final Conclusion
Fixed for #30572 on the tested MatrixOne and mo-dump revisions. This conclusion concerns the supplied dependency-ordering scenario and does not assert atomic restore or concurrent-DDL consistency.
Activity
slyunnn commentedon Oct 26, 2026
Regression and extended verification for #30572 (2026-10-26)
Verification Environment
main:b466f4ae9b74813a4ff93eaf43a6c81e6cbb8b0b—fix: acknowledge ISCP drain before executor runtime starts (#31167). The running binary was rebuilt and restarted;git_version()returnedb466f4aat all3SQL endpoints.mo-dumpmain:d9d6375512620f12ff371b8602cc1d10d6f6caa0, locally rebuilt. Associated fix: mo_dump PR #53, merge commitf33f68e554e2d8fb41c8746414e4b12bdc3c1e33, including3bb8076a01668c710afc0a314d8f1177ed439586(fix: restore cross-database views after their dependencies).2 CN / 1 TN / 1 Log service / Proxy. Setup, export, nativemysql 9.7.1restore, and query assertions ran separately over MySQL text-protocol routes Proxy6001, CN116001, and CN216002.What Was Covered
-db view_db,data_db: a view in the first database referenced a table in the second. The dump putCREATE TABLEbeforeCREATE VIEW; native-client restore exited0on all3routes.(1,1.25)and(2,2.50); the restored view returnedCOUNT(*)=2andSUM(v)=3.75on each route.3databases, exported in reverse order (top,mid,data): the table and both views restored successfully, and both view queries returned2 / 3.75at all endpoints.data,view) also restored with matching table and view results. Every export exited0and includedMODUMP SUCCESS.Findings
The previously failing reverse-order export is now restorable on an empty target. The direct, chained, and normal-order scenarios passed
9/9endpoint/scenario combinations. No partial restore or client error occurred in these controlled fixtures. These were native MySQL-client script replays, not a whole-file packet sent through a driver.Large-data regression required: No. The defect is dependency ordering between database objects, not row volume or batch/spill behavior. A base table with
2rows and a3-database chain crosses the relevant graph boundary without arbitrary data-scale cost.MOTR / BVT Coverage
The owning
mo-dumprepository contains direct cross-database ordering tests, and the fullgo test -count=1 ./...suite passed on this tool revision. The live9/9export/restore checks are additional command-level evidence. No duplicate SQL-only MOTR case, issue commit, or weekly PR change was made; the critical behavior is emitted dump order plus tool/client execution.Final Conclusion
Fixed for #30572 on the tested MatrixOne and
mo-dumprevisions. This conclusion concerns the supplied dependency-ordering scenario and does not assert atomic restore or concurrent-DDL consistency.