8000 Cache2kCacheMetrics.hitCount() can return negative values · Issue #211 · cache2k/cache2k · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cache2kCacheMetrics.hitCount() can return negative values #211
Open
@pcimcioch

Description

@pcimcioch

Hi!

In cache2k-micrometer there is a class named Cache2kCacheMetrics.

It has a method called hitCount that can, in some rare cases, return negative value.

Values returned by this method are used as Micrometer counter, which by definition cannot be negative.

I believe solution would be as simple, as just returning 0 instead of negative value in this case

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0