GreptimeTeam / greptimedb

An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL supported. Available on GreptimeCloud.
https://greptime.com/
Apache License 2.0
4.2k stars 300 forks source link

Metric for file cache size may become negative #4435

Closed evenyag closed 1 month ago

evenyag commented 1 month ago

What type of bug is this?

Incorrect result, User Experience

What subsystems are affected?

Standalone mode, Distributed Cluster

Minimal reproduce step

Run the cluster with the experimental write cache enabled

What did you expect to see?

The metric value should be greater than 0.

What did you see instead?

The value of cached bytes is negative:

image

What operating system did you use?

Linux

What version of GreptimeDB did you use?

0.9

Relevant log output and stack trace

No response

evenyag commented 1 month ago

Maybe caused by overflow

image