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 CSV ignores final flush error and silently restores truncated values #30628
Isolated topology: 2 CN / 1 TN / 1 Log service / Proxy. Container endpoints Proxy 6001, CN1 16001, CN2 16002 were mapped to host 6601, 16601, 16602; all three were connected and tested independently.
Export used the mo-dump MySQL driver; normal CSV restore used native mysql 9.7.1 over the MySQL text protocol with LOCAL INFILE enabled. The macOS file-size limit was applied only to the test mo-dump process.
What Was Covered
OK — Source fixture contained one TEXT payload of length 1200 bytes on each route.
OK — A 1024-byte process file-size limit caused the final CSV write/flush to fail on Proxy, CN1, and CN2. The partial CSV was 1024 bytes, mo-dump exited 1, and stdout contained neither MODUMP SUCCESS nor a LOAD DATA statement.
OK — An unrestricted control export and native-client restore completed with exit 0; the restored payload length was exactly 1200 on all 3 routes.
Not covered — Hardware disk-full/ENOSPC injection and a close-only failure. The targeted final-flush boundary and normal control were exercised directly.
Findings
The original false-success path no longer reproduces. This issue depends on a final buffer/flush boundary, so a minimal stable 1200-byte row with a 1024-byte file limit was required and used. Large-data regression required: No additional large dataset; arbitrary row growth would add cost without exercising a different boundary.
MOTR / BVT Coverage
The owning mo_dump repository's full make test passed at the tested commit, including final-flush error tests. The live process-level failure and normal restore controls above passed on all 3 routes. No duplicate SQL-only MOTR case was added: file write failure propagation, CLI exit status, and success-marker absence are the key assertions.
Final Conclusion
Fixed for #30628's final-flush false-success path on the tested revisions. No issue-specific PR was created.
Activity
fix: make SQL/CSV dump scripts restore-safe
fix: make SQL/CSV dump scripts restore-safe
fix: make SQL/CSV dump scripts restore-safe (#30596 #30598 #30587 #30…
slyunnn commentedon Oct 27, 2026
Regression and extended verification for #30628 (2026-10-27)
Verification Environment
main:2465dae7a4ada1b277113cca5afff6fe10149b96—refactor: consolidate unused code and bookkeeping cleanup (#31348); rebuilt binarygit_version()was2465dae7a4on all routes.mo-dumplatestmain:d9d6375512620f12ff371b8602cc1d10d6f6caa0—fix: make SQL/CSV dump scripts restore-safe (#30596 #30598 #30587 #30590 #30628 #30481) (#58). Associated fix: mo_dump PR #58.2 CN / 1 TN / 1 Log service / Proxy. Container endpoints Proxy6001, CN116001, CN216002were mapped to host6601,16601,16602; all three were connected and tested independently.mo-dumpMySQL driver; normal CSV restore used nativemysql 9.7.1over the MySQL text protocol withLOCAL INFILEenabled. The macOS file-size limit was applied only to the testmo-dumpprocess.What Was Covered
TEXTpayload of length1200bytes on each route.1024-byte process file-size limit caused the final CSV write/flush to fail on Proxy, CN1, and CN2. The partial CSV was1024bytes,mo-dumpexited1, and stdout contained neitherMODUMP SUCCESSnor aLOAD DATAstatement.0; the restored payload length was exactly1200on all3routes.ENOSPCinjection and a close-only failure. The targeted final-flush boundary and normal control were exercised directly.Findings
The original false-success path no longer reproduces. This issue depends on a final buffer/flush boundary, so a minimal stable
1200-byte row with a1024-byte file limit was required and used. Large-data regression required: No additional large dataset; arbitrary row growth would add cost without exercising a different boundary.MOTR / BVT Coverage
The owning
mo_dumprepository's fullmake testpassed at the tested commit, including final-flush error tests. The live process-level failure and normal restore controls above passed on all3routes. No duplicate SQL-only MOTR case was added: file write failure propagation, CLI exit status, and success-marker absence are the key assertions.Final Conclusion
Fixed for #30628's final-flush false-success path on the tested revisions. No issue-specific PR was created.