Skip to main content
← Back to list
01Issue
BugOpenSwamp CLIPublic
AssigneesNone

Relationships

#5024 Team mode: a leader that can't commit (disk full) keeps its lease and reports ready, so the standby never takes over (10 h 44 min write outage on dogfood)

Opened by stack72 · 11/23/2026

Problem

A team-mode leader that can't commit keeps its writer lease and keeps reporting ready, so the standby never takes over.

Measured on dogfood, 22 Nov (M):

  • the leader's disk filled at 00:47 UTC;
  • every forwarded commit then failed with ReadModelApplyError … database or disk is full;
  • /ready stayed 200, and the lease kept renewing;
  • no saves were accepted for 10 h 44 min, until space was freed by hand. About 2,500 member writes and workflow starts failed.

Scope (timeboxed, about one day)

  1. Define "can't commit": a commit or read-model apply failing persistently with a storage error (ENOSPC, SQLITE_FULL, I/O errors), or N consecutive failures within a window.
  2. On that condition the leader reports not ready (/ready non-200 with a reason) and releases its writer lease (or stops renewing it), so a healthy standby takes over. It logs an error naming the cause.
  3. A leader that recovers (space freed) rejoins as a follower through the normal path.
  4. Never step down on a single transient error.

Tests:

  • in-process two-serve: the leader's store starts failing with SQLITE_FULL, the leader steps down within a set bound, the standby takes over, and no acknowledged write is lost or duplicated;
  • a single transient failure doesn't trigger it;
  • red-checked.

Then: one full verify, and one VM run through the dogfood harness (user's go): fill the leader's disk with a scratch file, observe the takeover and recovery, then remove the file.

Stop rule: any change to fencing or lease semantics beyond "stop renewing / release" is escalated before it's built.

Done when

  • A leader that can't commit is not ready and has handed the lease to the standby within 2 × (TTL + skew) of the condition.
  • Writes resume on the new leader with 0 lost and 0 diverged.
  • quick.sh safety unchanged.
02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/23/2026, 7:44:38 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.