Skip to content

XInfoStreamFull returns nil in Groups whereas there is a group listed #2592

@a-agmon

Description

@a-agmon

I have a stream with a registered consumer group.
I can see these details when I run redis-cli

127.0.0.1:6379> XINFO STREAM GROUPTESTSTREAM-XFI-00573-2023-05-12-1816 FULL
 1) "length"
 2) (integer) 1
 3) "radix-tree-keys"
 4) (integer) 1
 5) "radix-tree-nodes"
 6) (integer) 2
 7) "last-generated-id"
 8) "1683904609269-0"
 9) "max-deleted-entry-id"
10) "0-0"
11) "entries-added"
12) (integer) 1
13) "recorded-first-entry-id"
14) "1683904609269-0"
15) "entries"
16) 1) 1) "1683904609269-0"
       2) 1) "test"
          2) "test"
17) "groups"
18) 1)  1) "name"
        2) "NEWGROUP1-EXV-00337-2023-05-12-1816"
        3) "last-delivered-id"
        4) "0-0"
        5) "entries-read"
        6) (nil)
        7) "lag"
        8) (integer) 1
        9) "pel-count"
       10) (integer) 0
       11) "pending"
       12) (empty array)
       13) "consumers"
       14) (empty array)

However when I call the function XInfoStreamFull on the same stream through the API then Groups slice is nil
image

How to reproduce

  1. Produce message to stream SX
  2. Create consumer group GX to stream SX (I specifically used XGroupCreateMkStream with SX and start 0 client.XGroupCreateMkStream(ctx, streamKey, consumerGroup, "0").Err()
  3. call the info full function client.XInfoStreamFull(ctx, streamKey, 0).Result()
    Groups collection returns null

version used
Redis 7.0.4 (00000000/0) 64 bit
github.com/redis/go-redis/v9 v9.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions