Skip to content

Raft path: worker-side novelty backpressure still surfaces as a generic 422 poison record #1741

Open

Description

@aaj3f

Follow-on to #1708/#1719, splitting out the one path that fix deliberately did not cover. On single-node/local — the path every HTTP transact route takes — novelty backpressure now surfaces as a typed, retryable 503/413 with Retry-After. On the Raft path it still doesn't: a worker-side novelty failure is recorded as a replicated PoisonRecord, and that record carries only a reason enum — the error's identity dies at serialization, so the client sees a generic 422 for what is actually a drain-and-retry capacity condition. That's the exact footgun #1708 describes, alive on precisely the deployments (clustered, sustained writes) most likely to hit it.

The reason this wasn't folded into #1719: fixing it means extending the replicated record, which is a wire-format change on the consensus path — mixed-version clusters have to read both shapes, so it needs versioning thought that a status-mapping PR shouldn't smuggle in. The shape of the fix is probably: add an optional typed-reason field to PoisonRecord (old peers ignore it, new peers map it), thread the novelty variants into it at the worker, and reconstruct the same NoveltyBackpressure / NoveltyDeltaTooLarge responses at the edge that the local path now produces — plus a keyed-retry test on the Raft path mirroring the one #1719 added locally.

Worth doing whenever the next consensus-touching change goes in, rather than as a standalone wire bump.

Activity

  1. added
    P2
    area:transact
    on Nov 14, 2026
  2. added this to the 5.0.0 milestone on Nov 14, 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:transact

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions