Skip to content

Conversation

the-mikedavis
Copy link
Collaborator

@the-mikedavis the-mikedavis commented Sep 2, 2025

This is meant to be used as a debugging tool via an eval command. It can be hard to tell from the outside why a QQ is not snapshotting. Looking at the overview/1 is a nice debugging tool. The smallest_raft_index key (and other info like the release_cursors) point out why a snapshot isn't being taken. The smallest_raft_index is the minimum of three criteria though:

  • oldest ready message
  • oldest checked out message
  • oldest message in the dlx state

This change adds all of those indexes so that it is clear which criteria is keeping the smallest_raft_index down.

This is meant to be used as a debugging tool via an eval command. It can
be hard to tell from the outside why a QQ is not snapshotting. Looking
at the `overview/1` is a nice debugging tool. The `smallest_raft_index`
key (and other keys like the `release_cursors`) points out why a
snapshot isn't being taken. The `smallest_raft_index` is the minimum of
three criteria though:

* oldest ready message
* oldest checked out message
* oldest message in the dlx state

This change adds all of those indexes so that it is clear which criteria
is keeping the `smallest_raft_index` down.
@the-mikedavis the-mikedavis force-pushed the md/fifo-overview-smallest-index-detail branch from b823505 to 7f36b01 Compare September 2, 2025 18:24
@michaelklishin michaelklishin merged commit 0f6b1db into main Sep 3, 2025
283 checks passed
@michaelklishin michaelklishin deleted the md/fifo-overview-smallest-index-detail branch September 3, 2025 15:03
@michaelklishin
Copy link
Collaborator

@the-mikedavis thank you. I will backport this all the way to v4.1.x but please note that the next 4.1.x release is now expected around 4.2.0 in the 2nd half of October.

michaelklishin added a commit that referenced this pull request Sep 3, 2025
rabbit_fifo: Expose each smallest raft index in `overview/1` (backport #14493)
michaelklishin added a commit that referenced this pull request Sep 3, 2025
rabbit_fifo: Expose each smallest raft index in `overview/1` (backport #14493) (backport #14502)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants