Skip to content

chore: reindex to event sink from cli#5209

Merged
zrbecker merged 3 commits intocometbft:mainfrom
erwanor:erwan/reindex_cli_cmd
Jun 24, 2025
Merged

chore: reindex to event sink from cli#5209
zrbecker merged 3 commits intocometbft:mainfrom
erwanor:erwan/reindex_cli_cmd

Conversation

@erwanor
Copy link
Copy Markdown
Contributor

@erwanor erwanor commented Jun 15, 2025

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 to 0.38.x and 0.37.x.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@erwanor erwanor requested review from a team as code owners June 15, 2025 14:36
@aljo242 aljo242 requested a review from zrbecker June 17, 2025 14:02
@zrbecker zrbecker enabled auto-merge (squash) June 24, 2025 16:42
@zrbecker zrbecker added backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x backport-to-v1.x labels Jun 24, 2025
@zrbecker zrbecker merged commit c653eee into cometbft:main Jun 24, 2025
31 checks passed
mergify bot pushed a commit that referenced this pull request Jun 24, 2025
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 to `0.38.x` and `0.37.x`.

---

#### PR checklist
- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

Co-authored-by: Zachary Becker <zachary@interchainlabs.io>
(cherry picked from commit c653eee)
mergify bot pushed a commit that referenced this pull request Jun 24, 2025
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 to `0.38.x` and `0.37.x`.

---

#### PR checklist
- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

Co-authored-by: Zachary Becker <zachary@interchainlabs.io>
(cherry picked from commit c653eee)
mergify bot pushed a commit that referenced this pull request Jun 24, 2025
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 to `0.38.x` and `0.37.x`.

---

#### PR checklist
- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

Co-authored-by: Zachary Becker <zachary@interchainlabs.io>
(cherry picked from commit c653eee)
zrbecker pushed a commit that referenced this pull request Jun 25, 2025
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 to `0.38.x` and `0.37.x`.

---

#### PR checklist
- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
<hr>This is an automatic backport of pull request #5209 done by
[Mergify](https://mergify.com).

Co-authored-by: Erwan Or <erwan.ounn.84@gmail.com>
Co-authored-by: Zachary Becker <zachary@interchainlabs.io>
zrbecker pushed a commit that referenced this pull request Jun 25, 2025
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 to `0.38.x` and `0.37.x`.

---

#### PR checklist
- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
<hr>This is an automatic backport of pull request #5209 done by
[Mergify](https://mergify.com).

Co-authored-by: Erwan Or <erwan.ounn.84@gmail.com>
Co-authored-by: Zachary Becker <zachary@interchainlabs.io>
zrbecker pushed a commit that referenced this pull request Jun 25, 2025
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 to `0.38.x` and `0.37.x`.

---

#### PR checklist
- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
<hr>This is an automatic backport of pull request #5209 done by
[Mergify](https://mergify.com).

Co-authored-by: Erwan Or <erwan.ounn.84@gmail.com>
Co-authored-by: Zachary Becker <zachary@interchainlabs.io>
@andynog
Copy link
Copy Markdown
Collaborator

andynog commented Aug 29, 2025

Hi @zrbecker and @erwanor — quick note: I tried re-enabling this command before and ran into an edge case on archive nodes that span multiple CometBFT releases. My suspicion is schema/type changes across releases that break the command. A good validation is to run the command against an archive node that contains history from multiple releases; alternatively, reproduce locally by upgrading a test node through the older CometBFT versions and retesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v0.38.x Tell Mergify to backport the PR to v0.38.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants