-
Notifications
You must be signed in to change notification settings - Fork 12k
Description
Before Creating the Bug Report
-
I found a bug, not just asking a question, which should be created in GitHub Discussions.
-
I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
-
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
All
RocketMQ version
develop
JDK Version
All
Describe the Bug
GAUGE_CACHE_COUNT and GAUGE_CACHE_BYTES in tiered storage use incorrect metric collection logic.
Steps to Reproduce
-
GAUGE_CACHE_COUNTis supposed to represent the current number of cached entries, but it was previously derived from CacheStats#loadCount(), which actually reports the total number of attempted cache loads. -
GAUGE_CACHE_BYTESis supposed to represent the current total bytes occupied by the cache, but it was previously derived from Cache#estimatedSize(), which only reports the approximate number of entries in the cache.
What Did You Expect to See?
Use the correct methods to collect GAUGE_CACHE_COUNT and GAUGE_CACHE_BYTES metrics.
What Did You See Instead?
Use the incorrect methods to collect metrics.
Additional Context
No response