8000 Streams: a consumer created by an XREADGROUP that timed out is missing after AOF replay · Issue #654 · kividbio/kividb · GitHub
[go: up one dir, main page]

Skip to content

Streams: a consumer created by an XREADGROUP that timed out is missing after AOF replay #654

Closed

Description

@murtazayusuf

Found while reviewing #644; master and 1.2.1 both have it.

In Redis, XREADGROUP GROUP g alice BLOCK ... STREAMS s > creates consumer alice in group g even when the read times out with nothing to return, and the consumer survives a restart. In KiviDB the consumer exists until the restart, but after the AOF is replayed it is gone.

Repro (AOF on):

XGROUP CREATE s g $ MKSTREAM
XREADGROUP GROUP g alice BLOCK 100 STREAMS s >      # -> nil after 100 ms
XINFO CONSUMERS s g                                 # -> alice
# restart (or DEBUG RELOAD with AOF / kill -9 and start)
XINFO CONSUMERS s g                                 # -> empty, expected alice

Likely cause: the blocking path that times out creates the consumer but nothing is propagated to the AOF/replicas for it. Redis propagates an XGROUP CREATECONSUMER in that case. The fix is probably to propagate that, and a test in tests/streams.rs that replays the AOF.

Good first issue: small, self-contained, and Redis's behaviour is the spec.

Activity

  1. added this to the 1.3.0 milestone on Nov 12, 2026
  2. added
    bug
    good first issue
    persistence
    on Nov 12, 2026
  3. added a commit that references this issue on Nov 14, 2026
    f278e68
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

    buggood first issuepersistence

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0