Repository navigation
Description
Parent Issue
Parent issue: #29433
Detail of Subtask
Phase S5. Depends on: #29438, #29439
Close cross-component correctness and compatibility before activating the new read path. This supplements, rather than postpones, the focused tests owned by S2-S4.
Deliverables:
- A contract-to-evidence matrix for committed and own-transaction DDL, metadata-only/COPY replacement, same-name recreation, nested views, concurrent readers, and old/new schema snapshots.
- Tenant, security/definer, publication/subscription withdrawal/remapping, historical/named snapshots, restore/clone/PITR, and legacy persisted-definition coverage.
- Compare direct queries, CTAS, DESC/SHOW, information_schema, protocol metadata, and reusable/cursor paths under equivalent visibility and approved surface-specific presentation rules.
- Specify and validate all-old, mixed, and all-new binary behavior, activation eligibility, restart, interrupted upgrade, rollback to the old reader, and rollback denial where required. Do not invent new durable barriers merely for metadata derivation; justify any unavoidable compatibility gate.
- Separate refresh-specific control-plane state from still-required persisted-expression/version/admission protection, including users of previously merged [Subtask]: Define catalog metadata barrier wire and snapshot contract #29003/[Subtask]: Implement HAKeeper catalog metadata capability barrier #29004 infrastructure.
Acceptance criteria:
- A statement observes one coherent permitted schema snapshot, not a mixture assembled across DDL; a cache-free derivation is the correctness oracle.
- A schema change after a statement snapshot does not incorrectly require that statement to expose the later schema. Define RC statement refresh and historical visibility explicitly.
- Missing/deleted/recreated dependencies, canceled reads, and transient resolution failures cannot publish stale success or leak tenant metadata.
- Deterministic barriers/fault injection prove race boundaries; use focused BVT, multi-CN, restore, and mixed-binary tests only for the mapped contracts.
- The reviewed rollout/rollback decision and exact-head evidence are linked before S8; no unverified claim that current issues already reproduce at the new head.
Describe implementation you've considered
Use the existing transaction/catalog visibility and security ownership boundaries. Preserve persisted-expression protocol checks independently of metadata freshness. Keep cross-request caching disabled for the reference run; any selected cache must later demonstrate equivalence.
Additional information
Use #26227 as the original behavioral oracle. #28079, #28317, #29396, and #29400 are related lifecycle/upgrade regression scenarios, not automatic proof of root cause or resolution. Review the exact supported version matrix rather than assuming a table can be dropped during mixed-version operation.
Planning baseline: b9013dc6bb058ec74935a62ac3a35f57d13c2f98. This issue records future work, not completed implementation or fresh test evidence. All production work is subject to the approved versioned design from S1. Ordinary views only; materialized-view refresh and unrelated SQL compatibility work are out of scope.
Activity
fix: make View metadata migration idempotent (#29468)
test(view): pin the S4 introspection contract and reconcile the close…
fix(view): preserve restore semantics and extend S5 conformance
fix(view): apply restored case policy to execution parsing
fix(view): preserve restore semantics and extend S5 conformance (#30953)