-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We witnessed this panic in one of our testnets using the v2 mempool caused from incorrectly configuring prometheus. ``` panic: inconsistent label cardinality: expected 3 label values but got 2 in prometheus.Labels{"chain_id":"test", "version":"6f334a2"} goroutine 151 [running]: github.com/prometheus/client_golang/prometheus.(*CounterVec).With(...) /go/pkg/mod/github.com/prometheus/client_golang@v1.19.1/prometheus/counter.go:296 github.com/go-kit/kit/metrics/prometheus.(*Counter).Add(0xc0013035a0, 0x0) /go/pkg/mod/github.com/go-kit/kit@v0.12.0/metrics/prometheus/prometheus.go:45 +0x131 github.com/tendermint/tendermint/mempool/cat.(*TxPool).CheckToPurgeExpiredTxs(0xc0012f7d40) ``` This PR fixes this problem. To make things safer in the future, it introduces a new metric "ExpiredTxs", specifically for those transactions that were kicked from the mempool due to the TTL
- Loading branch information
Showing
4 changed files
with
25 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.