Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Stats for tiered spillover cache are wrong in some situations #16559

Closed
peteralfonsi opened this issue Nov 4, 2024 · 0 comments · Fixed by #16560
Closed

[BUG] Stats for tiered spillover cache are wrong in some situations #16559

peteralfonsi opened this issue Nov 4, 2024 · 0 comments · Fixed by #16560
Assignees
Labels
bug Something isn't working Search Search query, autocomplete ...etc

Comments

@peteralfonsi
Copy link
Contributor

Describe the bug

When getting the tier-level stats from the new TieredSpilloverCache with GET /_nodes/stats/caches/request_cache?level=tier, the number of misses and evictions reported in the total is sometimes lower than the value you would compute based on the numbers in the individual tiers. For example if the disk tier is enabled, disk tier misses should equal total misses. The correct value is the one in the tiers, as it matches the old API. The discrepancy happens when shards are closed.

Related component

Search

To Reproduce

Set up a cluster using TieredSpilloverCache as its request cache. Make some requests to add misses to the cache. Close some shards. Afterwards, the tier-level and total values reported in the API will not match.

Expected behavior

The stats for tier and total should match.

Additional Details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Search Search query, autocomplete ...etc
Projects
Status: Done
2 participants