Skip to content

DynamoDB: make the upgrade to name bindings fence out 4.2 writers #2105

Open

Description

@bplatz

On file and object stores the upgrade to name bindings retires ns@v2/, so a 4.2 process still running against the store fails on every read and write of an existing ledger. On DynamoDB, 4.2 and the upgraded release read and write the same items, and the only fence against a 4.2 writer is the IAM recipe in docs/operations/upgrading-from-4.2.md. Without it, a 4.2 process can:

  • create ledgers the upgraded release does not see;
  • commit to a branch whose drop is in progress;
  • commit into a ledger recreated under a name it held, since 4.2's publish checks only that t moves forward and the recreated ledger starts again at t 0.

The migration already rewrites every item to add fences. Moving the head and index items to new sort keys at migration (or changing the meta item's kind) would make a 4.2 commit fail attribute_exists(#pk) and a 4.2 lookup find nothing, the DynamoDB counterpart of retiring ns@v2/. The IAM recipe would then be defence in depth. This matters most for serverless deployments, where stopping every process at once is hardest.

It changes every DynamoDB access path, the migration, and the rollback story (a restored backup must still be readable by 4.2).

Raised in the review of #1980.

Activity

  1. added
    P2
    area:storage
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:storage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions