Skip to content

[Subtask]: Define catalog metadata barrier wire and snapshot contract #29003

Closed

Description

@ck89119

Parent Issue

Parent issue: #26227

Detail of Subtask

Define the greenfield catalog-metadata lifecycle contract on top of the current main persisted-expression admission protocol.

Deliverables:

  • A tracked design/RFC covering protocol floor, membership epoch, catalog generation, ownership, failure containment, and the complete state-transition table.
  • Additive protobuf messages/tags for catalog-metadata capabilities and barrier snapshots without reusing or changing existing persisted-expression fields.
  • A versioned snapshot envelope that supports legacy raw snapshots, the current persisted-expression snapshot, and the new combined snapshot.
  • Byte-level old/new wire and snapshot compatibility tests, including reused state machines and corrupt/truncated input.
  • All new runtime behavior remains disabled; this subtask must not change public SQL admission or start recovery workers.

Acceptance criteria:

  • Existing protobuf field meanings and tags remain unchanged.
  • Old binaries tolerate new fields and new binaries interpret missing fields fail-closed or disabled as documented.
  • Failed snapshot decoding does not partially mutate RSM state.
  • The exact design and wire checkpoint receives traceable design-owner approval before later activation work depends on it.

Describe implementation you've considered

Introduce a generic catalog-metadata capability/barrier message rather than adding more unrelated booleans to the existing View-named admission payload. Keep persisted-expression protocol floor, membership generation, and metadata recovery generation as separate dimensions.

Additional information

This is phase 1 of the #26227 implementation series. It must merge before the HAKeeper barrier subtask starts formal review.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions