wrong copr cache metrics #28653
Labels
component/metrics
severity/minor
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Start a TiDB server and set
tikv-client.copr-cache.capacity-mb
to 0.2. What did you expect to see? (Required)
No copr cache metrics or no hit metric.
3. What did you see instead (Required)
It shows and hits always equals misses:

The root cause is TiDB uses the wrong metric type. It should use counter instead.
tidb/metrics/distsql.go
Lines 56 to 64 in f44d2cb
4. What is your TiDB version? (Required)
nighlty
The text was updated successfully, but these errors were encountered: