Repository navigation
refactor(view): add metadata regeneration foundation - #27267
Conversation
aptend
left a comment
There was a problem hiding this comment.
Re-reviewed the exact current head and the complete review history. The latest change closes the outstanding physical-owner issue by making the frontend catalog resolver the source of truth for snapshot, subscription-publisher, cluster-table, and forced-system-account namespace selection, and the regeneration wrapper now forwards that optional resolver. I also rechecked the surrounding dependency capture/regeneration, upgrade sequencing, guarded replace-definition, ownership preservation, and metadata compatibility paths. No remaining blocking issue found. (Focused local Go tests could not run because the installed Go 1.26.4 toolchain is incomplete/corrupted—standard-library packages are missing; third-party and CGo artifacts themselves built successfully.)
# Conflicts: # pkg/bootstrap/versions/v4_0_6/tenant_upgrade_list.go # pkg/bootstrap/versions/v4_0_6/upgrade_test.go
aunjgr
left a comment
There was a problem hiding this comment.
Reviewed current head 3d5528e. The metadata tables, guarded replacement protocol, upgrade pre-SQL sequencing, lower-case binding propagation, and physical dependency-owner resolution are covered by focused tests and passing CI. The prior migration, binding, and ownership findings are addressed; no additional blocking issue found.
XuPeng-SH
left a comment
There was a problem hiding this comment.
Deep re-review completed on exact head 3d5528e9a39dee990510209b35a24c01ce29e7cb, including the complete prior finding history and the latest main merge. No blocking issue remains.
The legacy KEY_COLUMN_USAGE migration now handles both object kinds through independently executed, ordered Pre/Upg/Post statements in one upgrade transaction. Persisted lower_case_table_names governs parsing, the nested BindContext, unaliased binding keys, and regeneration. Physical dependency ownership is now resolved by the frontend along the same snapshot/subscription/system-account paths used by relation resolution, and viewRegenerationContext forwards that resolver instead of falling back to the logical tenant.
I also rechecked direct/nested dependency capture, snapshot and subscription identity, deterministic dependency ordering, unknown ViewData preservation, guarded version replacement, rollback restoration, and creator/owner/created-time preservation. Focused bootstrap/planner/frontend/disttae race tests pass; complete diff is git diff --check clean.
Merge Queue Status
This pull request spent 3 hours 24 minutes 5 seconds in the queue, including 55 minutes 59 seconds running CI. Required conditions to merge
|
What type of PR is this?
Which issue(s) this PR fixes:
issue #26227
What this PR does / why we need it:
This is stack 1/3 for #26227.
It adds the inactive foundation for persisted View metadata regeneration:
This PR does not activate lifecycle tracking, background recovery, or public fail-closed behavior.
Stack:
Validation: