Skip to content

ADR-0009 — Rolling deploys through full-copies mode

  • Status: Accepted
  • Date: 2026-11-12
  • Supersedes: none
  • Authors: project maintainers

Context

Upstream's saver cannot read a patch (compatibility.md). An application that deploys this saver replica by replica runs old replicas (upstream's saver) and new ones (ours) against the same database for a while. If a new replica wrote a patch, an old replica reading that thread would raise.

Decision

We will give the saver a full-copies-only mode (full_copies_only=True) that writes only rows upstream's saver reads. Adopters deploy it everywhere with that mode, then turn patches on.

Alternatives considered

  • Require a stop-the-world switch — rejected: it forces downtime on every adopter.
  • Make upstream tolerate patches — not possible: upstream's code is not ours to change.

Consequences

  • Adoption is two deploys: first in full-copies mode, then with patches on.
  • Full-copies mode still writes head rows, so the fence and expiry work during the rollout (ADR-0022).

References