Skip to content

bugfix per tenant cache ttl fallback - #7775

Open
Shvejan wants to merge 2 commits into
cortexproject:masterfrom
Shvejan:cache-ttl-bug-fix
Open

bugfix per tenant cache ttl fallback#7775
Shvejan wants to merge 2 commits into
cortexproject:masterfrom
Shvejan:cache-ttl-bug-fix

Conversation

@Shvejan

@Shvejan Shvejan commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

What this PR does:
Makes out_of_order_results_cache_ttl fall back to results_cache_ttl before falling back to the global cache backend TTL.

Previously, a tenant that set only results_cache_ttl got that TTL for data outside the out-of-order window, but the global backend TTL for data inside
it. The fallback is resolved per-tenant before aggregating across tenants, since SmallestPositiveNonZeroDurationPerTenant discards zeros and would
otherwise lose track of which tenant left the value unset.

Which issue(s) this PR fixes:
Fixes #7774

Checklist
[BUGFIX]

  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

Signed-off-by: Shvejan Mutheboyina <shvejan@amazon.com>
Signed-off-by: Shvejan Mutheboyina <shvejan@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Query Frontend: out_of_order_results_cache_ttl does not fall back to results_cache_ttl

1 participant