Skip to content

cmd/utils/app: delete erigondb.toml.torrent during step-rebase - #19723

Merged
AskAlexSharov merged 2 commits into
mainfrom
wmitsuda/steprebase-invalidates-edb-torrent
Mar 8, 2026
Merged

AskAlexSharov merged 2 commits into
mainfrom
wmitsuda/steprebase-invalidates-edb-torrent

Conversation

@wmitsuda

@wmitsuda wmitsuda commented Mar 7, 2026 •

Copy link
Copy Markdown
Contributor

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

The step-rebase command renames snapshot data files, invalidating
existing torrent metadata. While .torrent files in subdirectories
(domain/, history/, accessor/, idx/) were already deleted, the
erigondb.toml.torrent in the snapshots root was missed.
@wmitsuda
wmitsuda enabled auto-merge (squash) March 7, 2026 22:07
@AskAlexSharov
AskAlexSharov changed the base branch from release/3.4 to main March 8, 2026 09:05
@AskAlexSharov
AskAlexSharov disabled auto-merge March 8, 2026 09:05
@AskAlexSharov
AskAlexSharov merged commit e49c4d4 into main Mar 8, 2026
24 checks passed
@AskAlexSharov
AskAlexSharov deleted the wmitsuda/steprebase-invalidates-edb-torrent branch March 8, 2026 09:05
wmitsuda added a commit that referenced this pull request Mar 8, 2026
## 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 added a commit that referenced this pull request Mar 9, 2026
…g step-rebase (#19730)

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
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