Skip to content

[Subtask]: Implement durable View metadata generations and recovery #29005

Closed

Description

@ck89119

Parent Issue

Parent issue: #26227

Detail of Subtask

Implement durable catalog generations and bounded View metadata recovery without enabling public metadata admission.

Deliverables:

  • Durable required/completed generation markers.
  • Claim owner, claim generation, deadline, cursor, and bounded page/retry semantics.
  • Conditional publication that rejects stale workers.
  • Dependency graph persistence and affected reverse-closure invalidation.
  • Scoped table/database/account restore reconciliation, orphan cleanup, and restored-View seeding.
  • Correct account, subscription, snapshot, and temporarily unavailable dependency contexts.

Acceptance criteria:

  • Worker crash/restart and claim takeover cannot move progress backward.
  • Stale generations cannot publish completion.
  • Table restore does not degrade into account-wide reset.
  • Another CN cannot observe a restored target as current before recovery completion.
  • Recovery work is bounded and fair across more than one page.
  • Public admission remains disabled or test-only until the activation subtask.

Describe implementation you've considered

Keep HAKeeper responsible only for barrier ownership. Store recovery truth in transactional catalog rows and use generation-scoped compare-and-swap updates.

Additional information

Depends on the wire/snapshot and HAKeeper barrier subtasks under #26227.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions