ADR-0022 — Head rows are written in every mode
- Status: Accepted
- Date: 2026-11-13
- Supersedes: none
- Authors: project maintainers
Context
Two switches limit what the saver writes: full-copies-only mode (ADR-0009)
and the patching-off row rehydrate sets in opc_patching_off. Either could also stop head-row
writes, which would make our tables droppable as soon as the switch is on.
Decision
Neither switch stops head-row writes, so the fence and expiry work in every mode. Our tables are dropped only once no saver of ours runs.
Alternatives considered
- Stop head-row writes in those modes — rejected: no fence and no expiry during a rolling deploy or after a rollback.
Consequences
- Our replicas fence each other from the first deploy.
- Dropping our tables (and the listing index) needs every saver of ours stopped, not only switched to full copies.