Skip to content

[r34] [cherry-pick] cmd/utils/app: delete erigondb.toml.torrent during step-rebase - #19730

Merged
wmitsuda merged 1 commit into
release/3.4from
wmitsuda/steprebase-edb-torrent-34
Mar 9, 2026
Merged

wmitsuda merged 1 commit into
release/3.4from
wmitsuda/steprebase-edb-torrent-34

Conversation

@wmitsuda

@wmitsuda wmitsuda commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

Cherry-pick of #19723 to release/3.4.

Summary

  • erigon seg step-rebase renames snapshot data files, invalidating existing torrent metadata
  • .torrent files in subdirectories (domain/, history/, accessor/, idx/) were already deleted, but erigondb.toml.torrent in the snapshots root was missed
  • Add it to the deletion list

## Summary
- `erigon seg step-rebase` renames snapshot data files, invalidating
existing torrent metadata
- `.torrent` files in subdirectories (domain/, history/, accessor/,
idx/) were already deleted, but `erigondb.toml.torrent` in the snapshots
root was missed
- Add it to the deletion list

## Test evidence (hoodi datadir, step 390625 → 78125)

**BEFORE rebase** — file exists:
```
-rw-r--r--  1 wmitsuda  wheel  293 Feb 18 22:19 .../snapshots/erigondb.toml.torrent
```

**DURING rebase** — listed for deletion and deleted:
```
D: .../snapshots/erigondb.toml.torrent
Deleted: .../snapshots/erigondb.toml.torrent
```

**AFTER rebase** — file is gone:
```
ls: .../snapshots/erigondb.toml.torrent: No such file or directory
```

`erigondb.toml` remains (rewritten with new step size) but
`erigondb.toml.torrent` is no longer present.

## Pending
- [ ] Cherry-pick the merged commit on main to the branch `release/3.4`
after this PR is merged
@wmitsuda wmitsuda changed the title [r34] cmd/utils/app: delete erigondb.toml.torrent during step-rebase [r34] [cherry-pick] cmd/utils/app: delete erigondb.toml.torrent during step-rebase Mar 8, 2026
@wmitsuda
wmitsuda enabled auto-merge (squash) March 8, 2026 21:37
@wmitsuda
wmitsuda merged commit 07e8438 into release/3.4 Mar 9, 2026
22 checks passed
@wmitsuda
wmitsuda deleted the wmitsuda/steprebase-edb-torrent-34 branch March 9, 2026 03:05
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