Repository navigation
fix(frontend): publish DUMP archives with create-only storage writes - #29808
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? |
b82a9d3 to
5df43ea
Compare
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? |
ecc82ca to
8912442
Compare
|
mo-bot review · Commit: "interrupted" |
|
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: 8912442aa35c401fe0238a318d8a77f07122c00c
Assessment: approve
Reviewed the complete 12-file delta and supplied discussions. Storage-level create-only publication restores archive ownership without a separate locking state machine. Stale-publisher, filesystem-alias, integration-test and AWS endpoint concerns are addressed. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
Validation:
-
Traced DUMP authorization, Stage/provider selection, wrappers, immutable object copying, manifest/READY publication, retries, cancellation, cleanup and LOAD.
-
Reviewed deterministic component tests and the two-CN SQL test, including winning manifest provenance, actual loaded rows, incomplete-archive rejection and same-connection retry.
-
Reused frozen exact-head CI: 14 successful, 15 skipped and 2 neutral checks, including build, Ubuntu UT, SCA, coverage and multi-CN BVT.
-
Isolation preflight passed. An independent probe executing the exact production endpoint predicate passed 22 cases, including the previously admitted API Gateway and EC2 endpoints.
-
Exact head/base, clean source, supplied-patch equivalence and diff whitespace checks passed. Commands, source fingerprints, exit receipts and logs were reconciled in /home/xupeng/.local/state/mo-bot/jobs/9d89541007cee349e8791390/attempt-1/review-evidence.json.
Limitations:
-
No native product suites ran locally. local_validation is empty; individual CI logs and author execution receipts were not supplied. The local probe validates the endpoint predicate, not SQL or real-provider operations.
-
Remote-provider E2E, case-insensitive platform execution and mixed-version/external replacing writers were not independently validated. Unsupported providers intentionally fail closed.
-
No current-head performance measurements were verified. Local publication adds marker checks and link/unlink work; remote publication remains bounded at 64 MiB. Ordinary SQL gains no publication lock or metadata lookup.
-
The linked issue's full text was absent; its behavioral contract was assessed through the supplied PR description and review reproductions.
Merge Queue Status
This pull request spent 3 hours 41 minutes 37 seconds in the queue, including 53 minutes 53 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
Closes #29759.
What this PR does / why we need it:
Concurrent DUMPs to one Stage destination could replace another publisher's manifest, leaving a successful DUMP whose archive and LOAD data belonged to a different source table. Publish the manifest and READY through storage-level create-only writes: local/disk storage atomically links a complete temporary file without replacement; AWS S3 and explicitly configured MinIO use conditional single-object PUT. AWS capability admission recognizes S3 API hostname forms rather than the general AWS domain suffix; API Gateway, EC2, S3 website/control, and unknown endpoints fail before publication. A stale publisher cannot overwrite the winner after a SQL allocator binding is lost. Filesystem aliases use the native filesystem's name equivalence.
Unsupported providers/endpoints fail before source copying. Existing immutable object-copy and failed-fixture retention behavior is preserved. A cancelled DUMP after manifest publication leaves no READY; LOAD rejects the incomplete archive, and the client can retry at a new destination. SQL file-access authorization from the current base is preserved.
End-to-end coverage
TestTableDumpConcurrentPublicationruns real MySQL DUMP/LOAD requests against two embedded CNs with two distinct two-row source tables and Stage/symlink aliases. Context-aware barriers synchronize the two writers before manifest publication. It asserts exactly one success, the winning manifest source, READY, and actual loaded row identities. It also cancels a query after manifest creation, checks incomplete LOAD and competing DUMP rejection, then verifies same-connection retry and LOAD results. Fault points and cluster resources are scoped to test cleanup.Component regressions retain delayed/stale publication, allocator restart with binding validation, native case/symlink aliases, conditional PUT headers, unsupported endpoints, cancellation, and size limits. The committed allocator restart regression and SQL integration test remain separate. An additional isolated Linux experiment on the preceding head
18db1a01restarts the real TN/allocator while both CN SQL publishers wait before manifest creation, then verifies a single winner, archive provenance and LOAD rows; it also passes the cancellation/incomplete archive/retry assertions. This experiment is retained separately from the committed test.Validation
Head:
8912442aa35c401fe0238a318d8a77f07122c00c, rebased onto maina69f7e066deece1fd3efcb8cc1dad8d343936b60.8912442aa35c401fe0238a318d8a77f07122c00c: ALL CI, Connector/J, and Iceberg workflow completed successfully. All applicable checks passed, including UT Coverage and CI Required; 15 conditional/disabled checks are excluded, including the disabled Iceberg E2E. Mergify neutral checks are not counted as CI passes.18db1a01versus0fb05134: real TN/allocator-restart SQL experiment passed (6.095s), including winner provenance/LOAD and cancellation/retry. Resources were released and absence verified.Limits and compatibility
HDFS, OSS, COS and unverified S3-compatible endpoints reject exclusive DUMP publication. Remote provider E2E and mixed-version writers remain unrun. BM129 use has resumed with user authorization; the additional fault and performance experiments passed for the explicitly recorded historical head/base. Unpatched/external writers that replace objects are outside the create-only contract. Historical benchmark numbers do not describe this revision; no zero-regression performance claim is made.
The changes were self-reviewed. Independent model review was not run under the user's explicit prohibition on delegation. Existing GitHub reviews remain visible; no review was dismissed or resolved by this update. New-head CI results will be tracked separately from local validation.