Skip to content

algod_ledger_round duplicated in /metrics after running fast catchup #3354

@onetechnical

Description

@onetechnical

Subject of the issue

(As reported by another user) If you run fast catchup, the algod_ledger_round reported by the /metrics endpoint will duplicate stats.

# Before Fast Catchup
$ curl -Ss localhost:8080/metrics  | grep -v '#' | grep algod_ledger_round
algod_ledger_round{} 33081

# After Fast Catchup
$ curl -Ss localhost:8080/metrics  | grep -v '#' | grep algod_ledger_round
algod_ledger_round{} 33081
algod_ledger_round{} 18310078

$ curl -Ss localhost:8080/metrics  | grep -v '#' | grep algod_ledger_round
algod_ledger_round{} 33081
algod_ledger_round{} 18310108

$ curl -Ss localhost:8080/metrics  | grep -v '#' | grep algod_ledger_round
algod_ledger_round{} 33081
algod_ledger_round{} 18310142

Your environment

  • Software version: 3.2.2

Steps to reproduce

  1. Start a fresh non-archival node
  2. Check the /metrics endpoint for algod_ledger_round
  3. Run fast catchup and complete it
  4. Check the /metrics endpoint for algod_ledger_round and observe two instances.

Expected behaviour

Only the latter metric.

Actual behaviour

Both the former and latter metrics.

A workaround is to restart the algod process.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions