Skip to content

rm-state with 0-2048 domain file doesn't remove domain #18516

@sudeepdino008

Description

@sudeepdino008

domain

ls /erigon-data/snapshots/domain|grep receipt
v1.2-receipt.0-2048.bt
v1.2-receipt.0-2048.bt.torrent
v1.2-receipt.0-2048.kvei
v1.2-receipt.0-2048.kvei.torrent
v2.1-receipt.0-2048.kv
v2.1-receipt.0-2048.kv.torrent

history

ls /erigon-data/snapshots/history|grep receipt
v2.1-receipt.0-64.v
v2.1-receipt.0-64.v.torrent
v2.1-receipt.1024-1088.v
v2.1-receipt.1024-1088.v.torrent
v2.1-receipt.1088-1152.v
v2.1-receipt.1088-1152.v.torrent
v2.1-receipt.1152-1216.v
v2.1-receipt.1152-1216.v.torrent
v2.1-receipt.1216-1280.v
v2.1-receipt.1216-1280.v.torrent
v2.1-receipt.1280-1344.v
v2.1-receipt.1280-1344.v.torrent
v2.1-receipt.128-192.v

v2.1-receipt.1600-1664.v.torrent
v2.1-receipt.1664-1728.v
v2.1-receipt.1664-1728.v.torrent
v2.1-receipt.1728-1792.v
v2.1-receipt.1728-1792.v.torrent
v2.1-receipt.1792-1856.v
v2.1-receipt.1792-1856.v.torrent
v2.1-receipt.1856-1920.v
v2.1-receipt.1856-1920.v.torrent
v2.1-receipt.192-256.v
v2.1-receipt.192-256.v.torrent
v2.1-receipt.256-320.v
v2.1-receipt.256-320.v.torrent
v2.1-receipt.320-384.v
v2.1-receipt.320-384.v.torrent
v2.1-receipt.384-448.v
v2.1-receipt.384-448.v.torrent
v2.1-receipt.448-512.v
v2.1-receipt.448-512.v.torrent
v2.1-receipt.512-576.v
v2.1-receipt.512-576.v.torrent
v2.1-receipt.576-640.v
v2.1-receipt.576-640.v.torrent
v2.1-receipt.640-704.v
v2.1-receipt.640-704.v.torrent
v2.1-receipt.64-128.v
v2.1-receipt.64-128.v.torrent
v2.1-receipt.704-768.v
v2.1-receipt.704-768.v.torrent
v2.1-receipt.768-832.v
v2.1-receipt.768-832.v.torrent
v2.1-receipt.832-896.v
v2.1-receipt.832-896.v.torrent
v2.1-receipt.896-960.v
v2.1-receipt.896-960.v.torrent
v2.1-receipt.960-1024.v
v2.1-receipt.960-1024.v.torrent

typically a common point was found..and then regen was done. WE use

if removeLatest {
					_maxFrom = max(_maxFrom, res.From)
				}

which gives 1920 for history; and domain doesn't get removed because no file is there.

it should resolve (partially) after few more steps files are created (it'll work for cases where we want to rm files after 2048)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions