Skip to content

Bound and observe in-process single-flight state #41

Description

@lan17

Priority

P1 — High — resolve before broad production adoption or large-scale use.

Problem

inFlight is an unbounded map whose entries remain until the leader promise settles. A hung fallback/read can retain a key indefinitely; many unique hung keys can grow promises, closures, and request state without bound, while followers wait forever.

Evidence:

Open decision

Decide whether the first step is observability, an entry cap, follower wait budget, leader lease, or a combination. Do not silently delete active leaders and permit duplicate fallback writes without approved semantics.

Acceptance criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions