Repository navigation
Conversation
…in-clean # Conflicts: # pkg/logservice/store_test.go
…in-clean # Conflicts: # pkg/frontend/plan_cache_test.go
…in-clean # Conflicts: # pkg/frontend/computation_wrapper.go
…in-clean # Conflicts: # pkg/frontend/mysql_cmd_executor.go
…in-clean # Conflicts: # pkg/tests/issues/isolated/issue_26640_cluster_restore_test.go
|
Addressed in The design document and PR body now consistently record the lifecycle design as approved. They link The records now distinguish the approved semantic checkpoint, current conformance head, and documentation head, and explicitly state that the subsequent main merges, fixture alignment, and documentation updates do not alter the approved lock protocol. Could you please re-review the updated approval/conformance record? |
aptend
left a comment
There was a problem hiding this comment.
Re-review of exact head 80ed6eb1676fbc90110c1f9cfc14f30652a51fae against base 091825aac2c8785d912f8d3eceb0e38de320e57a and my previous reviewed head 157d30c54b3754dac17991df5bba9b29a0026db5.
I read all 22 historical reviews and all 6 review threads (including the stale/outdated unresolved design-gate thread), checked the increment since my prior review, and rechecked the full diff. The prior task-index idempotence blocker is closed, and the design plus a97f8074d7514428d042de482650c7b4f3f855e1 lock-protocol checkpoint now have traceable approval. One integration blocker remains on the current activation head.
The exact-head GitHub run 35050888991 attempt 1 failed independently in both Ubuntu/x86 UT and UT Coverage at TestIssue26068DataBranchDatabaseIdentityLifecycle/delete_validates_after_exclusive_database_lock: after the concurrent CREATE TABLE commits, DATA BRANCH DELETE DATABASE returns txn need retry in rc mode instead of performing the required post-lock validation and returning the inactive-branch-table error. This is not just a remote-run artifact: on this head, the shared-cluster race sequence through the tests preceding issue 26068, repeated with -count=5, reproduced the same failure in two local runs (the second failed 3/5 iterations); the identical command on exact base passed 5/5. The isolated issue test passes (-count=3 normal and -race -count=10), which is why this needs shared-cluster/stateful regression coverage rather than another isolated rerun.
The failure surfaces at pkg/frontend/data_branch.go:899-925: the owned pessimistic-RC background transaction crosses the SNAPSHOT lineage barrier in getLineageOwnerMutationExecutor, then lockDataBranchDeleteDatabaseTarget waits for the target mo_database row. After the creator commits, the lock returns ErrTxnNeedRetry; internal background execution does not retry the statement, so the retry leaks to the client before validateDataBranchDeleteDatabaseTarget can inspect local_t. Please make this owned transaction safely restart and repeat admission + target locking + validation on this retry (or otherwise restore the same atomic post-lock contract), and retain a deterministic shared-cluster regression.
Validation: make thirdparties; owning packages pkg/bootstrap/versions/v4_0_6, pkg/hakeeper, pkg/logservice, pkg/cnservice, pkg/sql/compile, and pkg/frontend pass; isolated issue test normal/race passes as noted; current-main merge-tree is clean. git diff --check only reports the two existing trailing-space table rows in pub_sub_view_columns.result. SCA, shared build, Proxy BVT, and pessimistic BVT are green; the required UT/coverage failure remains blocking.
aptend
left a comment
There was a problem hiding this comment.
Deep re-review completed on exact head 79de124d71f727a66576a0051ae138e486bc9e8e against base 01d60e1c4ded1b0f3fc1a4ecd75ce54e95e23b90 and my previous reviewed head 80ed6eb1676fbc90110c1f9cfc14f30652a51fae.
I read all 24 historical reviews, all 7 review threads including the author reply and current resolution state, and the PR conversation; compared the complete increment and rechecked the previously reviewed full-diff closures. The prior DATA BRANCH blocker is closed. On the first target-database-lock ErrTxnNeedRetry / ErrTxnNeedRetryWithDefChanged, a7e85733cb restarts only the owned, non-shared background transaction, reacquires the lineage lifecycle gate, then repeats the target lock and post-lock validation. Shared/explicit transactions, nested lock ownership, and non-retry errors preserve their old behavior; the restart is bounded to one attempt. The later main merge has an empty remerge diff, so it introduced no PR-specific conflict resolution.
The older blockers remain closed on this head: the approved design/lock checkpoints are recorded, task-index upgrade idempotence still parses the physical task-table definition with its all-three-index rerun regression, target-name indexes keep scoped restore cleanup seekable, and the real shared-catalog two-CN restore barrier remains intact.
Exact-head evidence: make thirdparties; focused restart/retry helpers under -race -count=10; issue 26068 alone under -race -count=5; the complete preceding shared-cluster sequence through issue 26068 under -race -count=5; the real two-CN restore barrier under race; full pkg/frontend and pkg/sql/compile; and the task-index idempotence regression all passed. git diff --check reports only the two established table-formatting spaces in pub_sub_view_columns.result. Exact conformance head 4e9b829e76 also has successful required UT, coverage, SCA, and BVT checks. The current-head PROXY BVT failure occurred while pulling eclipse-temurin from Docker Hub (connection reset by peer) before any MatrixOne container started, so it is not product evidence.
I found no remaining correctness, lifecycle, concurrency, compatibility, performance, or test-architecture blocker.
What type of PR is this?
Which issue(s) this PR fixes:
issue #26227
What this PR does / why we need it:
This is the final activation layer for the View metadata lifecycle built by #27267 and #27370 on top of the durable admission contract from #27430.
It:
READYstate;DESC,SHOW COLUMNS,information_schema.columns, and current-catalog CTAS while ordinary View queries continue to rebind the stored SQL;The activation authority is the replicated HAKeeper admission epoch. No local
MOClustersnapshot can independently authorize refresh.Historical validation (not current-head evidence):
-race -count=100;SHOWand access-control BVT;go vet,git diff --check(excluding established.resulttrailing-space formatting), and a finalmo-servicebuild.Design artifact
8c2332ecbbfc6e6c2196e734d345875b2edac134; review 5126100008 onbb1e8259c3f8f30f20a8617925c4c81f3243094b.a97f8074d7514428d042de482650c7b4f3f855e1; review 5218046900 byfengtttoncec64fc8abfe9b069987c1ead07b681f4d9a883a.a0fa7058fdf0093bf161f14454030e92879b2318(base66b1672403); documentation head:95d99e7aa211b8e3ae82be41b768f11a707834fb. Changes after the approval head merge main, align test fixtures, and restore the documented post-lock atomic validation contract by restarting the owned DATA BRANCH DELETE admission/lock/validation transaction on an RC retry; they do not change the approved lock-protocol semantics.Lock-protocol checkpoint validation (
a97f8074d7):TestIssue26087ConcurrentDataBranchQuota: race, 3 repetitions passed (the same command failed before this fix).TestDataBranchDiffAsFile: normal and race passed, without retries or weaker assertions.Latest CI follow-up (
28a63bd5b4):TestIssue27040ConcurrentIfNotExistsDatabaseClone: identify the first clone by its exact destination catalog key, then require a waiter behind that transaction on the lineage or destination-catalog boundary. Early-return and committed uniqueness/data assertions remain unchanged.34308560098had this real coverage-test failure. Ordinary UT and both BVT jobs were interrupted at the same cancellation time; their incomplete executions are not counted as passes. No new production workaround or blind retry was added.Review closure evidence
information_schema.columns; comments/formatting cannot bypass the fence, while CTE aliases and string literals do not create false positives.d3a06e7978d9eee2453be5b0f6b0d02a2172cbc9; exact old/base binary:6b8987741df912f38cece5bd026349d79672faf9.VARCHAR(12)), one-new/one-old capability-disabled legacy metadata (VARCHAR(12)), all-new activation (VARCHAR(48)), same-UUID CN restart, old-binary rollback denied before ingress, new-binary recovery, snapshot restore revalidation, and immediate whole-cluster restart.6f15067b02fixed Rows lifecycle SCA findings and added bounded lifecycle waits to four pre-existing View BVTs; the lifecycle BVT followed by all four affected tests passed220/220. That historical BVT/build/lint evidence remains supplementary rather than being relabeled as current-head evidence.351397e59a286ff13cef6113904f24313310a03cseparates provisional epoch admission from metadata authority: ordinary base-table and binary prepared/cached planning remain available after authority expiry, while SHOW COLUMNS and information_schema.columns fail closed and recover after renewal. The frontend boundary test passes normally and with-race -count=100; full frontend, compile, and CN owning-package UTs pass.requestedEpochis published; focused fence race stress covers this path. Successful metadata completion now releases while sensitivity is still set, deterministically resetting the connection write deadline before clearing statement state.TestIssue26114CrossAccountBranchQuotaAndOwnershipfailure is outside this View lifecycle diff; Coverage failed only because a required producer failed.if: false; those SKIPPED jobs are not counted as evidence.Review round 2 closure
TestViewMetadataInitialRefreshLeaseBlocksFirstAdvanceproves the firstAdvance(1)cannot publish until that lease drains.discovery=5s,owner remaining=30.1syields a 36s budget rather than the old fixed 10s.columnsshadowed by a CTE under defaultinformation_schemais ordinary work, while an explicitly qualified relation and a realinformation_schema.columnsreference inside a CTE still acquire the lease.49364cd460, superseded and not current-head evidence) mixed-version run against base (6b8987741d) passed all-old, partial fail-closed, all-new activation, snapshot restore, same-UUID restart, old-binary rollback denial, recovery, and immediate full-cluster restart.