Skip to content

fix: fall back for unsafe pooled raw counter state - #528

Merged
zzylol merged 1 commit into
mainfrom
fix/raw-counter-series-safety
Sep 8, 2026
Merged

zzylol merged 1 commit into
mainfrom
fix/raw-counter-series-safety

Conversation

@zzylol

@zzylol zzylol commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Before this PR

Collector-free raw counter producers pool different time series into one accumulator. Two series at the same timestamp with independent resets can produce 10 instead of the independent-series total 15, yet be served as warm results.

After this PR

Backend-local planning routes affected rate/increase query roots to exact fallback while retaining other supported workload summaries. Counter-only snapshots deduplicate this exact alternative before cost quoting. Validation rejects previously generated raw-counter artifacts before they can become active; distributed precomputed counter envelopes remain supported.

Validation: the new safety regression failed before the compiler fix; 662 control-plane unit tests and both compatibility process tests pass. A worker regression demonstrates the pooled reset/timestamp failure. Process checks verify native forwarding for instant/range counter queries, retained warm siblings, and rejected-artifact installation leaves the active generation unchanged. The forwarding mock is a sentinel, not a Prometheus numerical oracle.

@zzylol
zzylol merged commit 89ca0f5 into main Sep 8, 2026
1 check passed
@zzylol
zzylol deleted the fix/raw-counter-series-safety branch September 21, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant