Skip to content

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Sep 3, 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 an automatic backport of pull request #14493 done by Mergify.
This is an automatic backport of pull request #14502 done by Mergify.

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.

(cherry picked from commit 7f36b01)
(cherry picked from commit c59e4ef)
@michaelklishin michaelklishin added this to the 4.1.5 milestone Sep 3, 2025
@michaelklishin michaelklishin merged commit b2d2439 into v4.1.x Sep 3, 2025
274 of 276 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.1.x/pr-14502 branch September 3, 2025 18:10
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

Successfully merging this pull request may close these issues.

2 participants