ledgerwatch / erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
3.03k stars 1.05k forks source link

`erigon snapshots retire` lock datadir #10802

Closed AskAlexSharov closed 1 week ago

AskAlexSharov commented 1 week ago

maybe this is reason why we have couple broken .ef files on ethmainnet/bormainnet - maybe i run this command without stopping erigon (by mistake)

AskAlexSharov commented 1 week ago

@JkLondon no. actually opposite. Most of cli commands must be able to run without stopping erigon. also sub-systems of erigon (like RpcDaemon) can run as a separated process and also should start without any expectations on "erigon" status (can be up, can be down).

but commands which modify datadir (producing snapshots, for sure better take datadir lock).