Skip to content

Conversation

@artikell
Copy link
Contributor

fix: #13337
rebase: #13338

  • Fixed the incorrect entries-read count in the case of an empty stream.
  • Ensured the real-time accuracy of the entries-read value in XINFO, preventing inconsistencies between lag and entries-read. Consequently, the return results of some unit tests (UT) have been modified.
  • Fixed the counting error when last-id < max_deleted_entry_id < first_id.

assert_equal [dict get $reply max-deleted-entry-id] "1-0"
assert_equal [dict get $reply entries-added] 1
assert_equal [dict get $group entries-read] {}
assert_equal [dict get $group entries-read] 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it 1? i don't see any XREADGROUP command.


set reply [r XINFO STREAM x FULL]
set group [lindex [dict get $reply groups] 0]
assert_equal [dict get $group entries-read] {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why isn't it 2?

@YaacovHazan YaacovHazan added the release-notes indication that this issue needs to be mentioned in the release notes label Oct 13, 2024
@YaacovHazan YaacovHazan moved this from Pending to Todo in Redis 7.4 Backport Apr 21, 2025
@YaacovHazan YaacovHazan moved this from Todo to Pending in Redis 7.4 Backport Apr 21, 2025
@YaacovHazan YaacovHazan moved this from pending to Todo in Redis 7.2 Backport May 25, 2025
@YaacovHazan YaacovHazan moved this from Todo to pending in Redis 7.2 Backport May 25, 2025
@sundb sundb removed this from Redis 8.2 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

[BUG] Redis Streams XINFO Lag field

3 participants