chore: reindex to event sink from cli (backport #5209) #5240
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a reindex command to the CLI interface. The command was already implemented, and included in a previous tendermint release (
0.34.x) but the backport was missed during the tendermint -> cometbft transition. This is a useful command to repipe events to a destination sink, for example because of a migration, or if an event was lost because the sink was offline.This has been a recurring source of pain for us (Penumbra), and we didn't realize it existed until now. First, adding to
main, and I will open backports to0.38.xand0.37.x.PR checklist
.changelog(we use unclog to manage our changelog)docs/orspec/) and code commentsThis is an automatic backport of pull request #5209 done by [Mergify](https://mergify.com).