8000 Streams: the IDMP duplicate counter (iids-duplicates) is not restored by AOF replay · Issue #655 · kividbio/kividb · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Streams: the IDMP duplicate counter (iids-duplicates) is not restored by AOF replay #655

Closed

Description

@murtazayusuf

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

With idempotent producers (XADD ... IDMP), XINFO STREAM reports how many duplicates were dropped (iids-duplicates). The counter is right while the server runs, but after a restart that replays the AOF it starts over (snapshots keep it).

Repro (AOF on, no snapshot in between):

XCFGSET s IDMP-DURATION 100 IDMP-MAXSIZE 100   # or however the stream is set up for IDMP
XADD s IDMP p1 id1 * f v
XADD s IDMP p1 id1 * f v                        # a duplicate: dropped
XINFO STREAM s                                  # iids-duplicates 1
# restart, AOF replayed
XINFO STREAM s                                  # iids-duplicates 0, expected 1

Check what Redis 8.10 does here first (whether the duplicate XADD reaches its AOF, or the counter is otherwise kept), and match it. Add a test that replays the AOF.

Good first issue: the stream code is small and well tested; tests/stream_changes.rs has examples.

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
    7913ba8
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