Repository navigation
Conversation
- Rename sample types to alloc_objects, alloc_space, inuse_objects, inuse_space; default inuse_space - Set PeriodType, Period, TimeNanos, and Mapping.HasFunctions in Profiler.Write - Add heap_profiler_pprof_test for profile.Parse round-trip - Add [malloc] block to mo_checkin_regression_tke.yaml for tp/dn Made-with: Cursor
Made-with: Cursor
|
Addressed the current XuPeng-SH review findings in design revision 3 at commit fa8e7c4.
This PR remains design-only; no production implementation or QA acceptance is claimed. Exact-base snapshot, review-surface/obligation identity, and diff-check passed. Please re-review the updated design revision. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Design re-review of revision 3 at exact head fa8e7c48eb43f27421b01cc219add8b7457efe8d, against unchanged base/merge-base 9f87b6249889107c3c108c133a4c3c8f3bc273ee. APPROVE: both design blockers from my review of 53eff80bc9dce91cf0b037f68b5ae4e4f419672c are addressed.
- P1 recovery/termination: the durable gate now identifies the owner incarnation and claim token, names HAKeeper's DDL recovery coordinator as terminal owner, and requires a current epoch/token for every EXCLUSIVE-side effect. CAS takeover and phase deadlines cover owner loss. Pre-publication abort separates reopening the old relation from idempotent invisible-temporary cleanup. Uncertain publication is resolved through the durable transaction/log barrier rather than guessed to be an abort. Post-commit recovery retains v2, while replay targets must acknowledge the generation or be explicitly fenced/retired. The three new barrier-driven acceptance cases exercise the previously missing terminal paths and stale-owner exclusion. Continued rejection while durable outcome/membership authority is unavailable is an explicit safety choice, not an unconditional availability promise.
- P2 domain identity: IDs now identify immutable normalization families; canonical length-delimited per-part parameters carry prefix/unit and numeric width/scale. Consequently the complete identity is
(family ID, canonical parameters), and different supported parameters no longer require locally inventing registry entries or changing the cluster manifest digest. Type/family/parameter validation and hashing cover that descriptor, including NULL parts. Independently parsed all eight explicit revised hex envelopes: part counts, descriptor lengths, payload lengths and complete consumption agree with the layout.
Read the full incremental document change and reused the unchanged baseline/source closures from the prior complete review. Rechecked the new decisions against sidecar publication, snapshot/locator ownership, all-writer/TN fencing, FK and FULLTEXT original-value preservation, normalized collation/PAD policy, typed metadata propagation, mixed-version readers, backup/restore, conservative pruning and the codec/input-row performance model. No new confirmed design blocker remains. The implementation still must exercise multiple widths/prefixes/scales and malformed parameter descriptors, prove actual cross-service fencing/cleanup with the named deterministic cases, and satisfy the existing public SQL/prepared/concurrency/persistence/performance acceptance matrix. This approval is for the design, not production implementation or QA acceptance.
Exact-head CI run 34283368197 completed successfully; no new executable behavior is introduced by this documentation-only PR. The PR body's older content snapshot was not reused as exact-head validation. No native implementation tests, new SQL reproduction or benchmarks were run, and no repository code was changed. The self-review design gate and unhappy-path ownership/termination checks guided this re-review.
Merge Queue Status
This pull request spent 1 minute 43 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #28423 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #28164
What this PR does / why we need it:
This is a design-only delivery for the string PK/UNIQUE identity bug.
It does not claim that the issue is fixed or close the issue. Revision 2 closes
the local design findings and is ready for maintainer review; production codec
and migration implementation remain a separate PR series.
Changes:
api.SchemaExtrafield 20 andplan.TableDeffield 40), typed CN/TN capability and activation generations, explicit copy-boundary checks, and a persisted stop-write migration gate with transaction drain, collision abort, and atomic publication.utf8mb4_0900_ai_cicompatibility policy, rejected alternatives, review dispositions, and the implementation-series acceptance matrix.Scope and non-goals:
Validation:
make buildPASS on exact baselinec51bb4ed868219af720cb5c019fb103bc1e7bcc7; binary SHA2565df08fdacb616ce15d56194c803f043275f8f610f15d7347826fd346c22a83ec.Alpha,alpha, andAlphaas three unique rows after the issue ODKU sequence; the forced-index read agrees with the table scan. The same-batch ODKU and ordinary INSERT controls also accept case-equivalent values. VARBINARY and nullable-UNIQUE controls retain their expected independent/NULL behavior.53eff80bc9dce91cf0b037f68b5ae4e4f419672c, base/merge-base9f87b6249889107c3c108c133a4c3c8f3bc273ee, diff hashe108b148087cf7cfa34da2e63eb086ce3d0dbd4b362f043e7eecbde28185b72b,git diff --checkPASS. The branch is synchronized with the current main; the PR diff against its base contains only this design document.artifacts/issue-28164-design/20260908T102749Z/; the three-sample correction is inartifacts/issue-28164-design/20260909T000000Z/.QA required: yes — the implementation series will change a user-visible SQL uniqueness terminal and persistent key identity across concurrent writes, index rebuild, restart, backup/restore, and rolling-version capability boundaries. QA must exercise the real INSERT/ODKU, INSERT/IGNORE, REPLACE, UPDATE, migration, and recovery paths on the supported deployment topology. QA acceptance is not run by this design PR.
Status:
baseline_reproduction=PASS,design_completeness=PASS,design_review=READY_FOR_MAINTAINER_REVIEW,production_fix=NOT_IMPLEMENTED,qa_acceptance=NOT_RUN. #28164 remains open pending maintainer review and separately implemented/validated codec and migration work.