Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
a-agmon opened this issue May 12, 2023 · 4 comments
Open

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

a-agmon opened this issue May 12, 2023 · 4 comments

Comments

@a-agmon
Copy link

a-agmon commented May 12, 2023

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

@SoulPancake
Copy link
Contributor

@a-agmon Version of go-redis and redis?

@a-agmon
Copy link
Author

a-agmon commented May 13, 2023

Apologies @SoulPancake ,
the versions used are:
Redis 7.0.4 (00000000/0) 64 bit
github.com/redis/go-redis/v9 v9.0.4

Also updated in the issue.
I should also say that by updating the latest versions of both, the problem persists ( there are no groups in the collection which is nil, and also err is Redis.Nil

@SoulPancake
Copy link
Contributor

also err is Redis.Nil

Do you mean client.XGroupCreateMkStream(ctx, streamKey, consumerGroup, "0").Err() returns nil?
Where do you get the error?

@a-agmon
Copy link
Author

a-agmon commented May 14, 2023

XInfoStreamFull returns err Redis.Nil
When I examine the data it returns in addition to the err, then I see that all the properties of the stream are there, besides the groups collection.
I will try to create a reproducible script a little bit later on today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants