ledgerwatch / erigon

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

diagnostics: fix marking completed stage as running #10841

Closed dvovk closed 1 week ago

dvovk commented 1 week ago

Fixed warn: [WARN] [06-21|01:46:52.502] [Diagnostics] Can't find running stage or substage while updating Snapshots stage stats. stages:="[{ID:Snapshots State:Running SubStages:[{ID:Download header-chain State:Completed Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:Download snapshots State:Completed Stats:{TimeElapsed:2m40s TimeLeft:999hrs:99m Progress:100.00%}} {ID:Indexing State:Completed Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:Fill DB State:Completed Stats:{TimeElapsed: TimeLeft: Progress:}}] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:BlockHashes State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:Senders State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:Execution State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:HashState State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:IntermediateHashes State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:CallTraces State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:AccountHistoryIndex State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:StorageHistoryIndex State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:LogIndex State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:TxLookup State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}} {ID:Finish State:Queued SubStages:[] Stats:{TimeElapsed: TimeLeft: Progress:}}]" stats:="{TimeElapsed:1m20s TimeLeft:999hrs:99m Progress:100.00%}" subStageInfo:="Downloading snapshots"