Skip to content

fix(precompute): enforce envelope series cap - #599

Merged
zzylol merged 1 commit into
mainfrom
fix/591-envelope-series-cap
Sep 4, 2026
Merged

zzylol merged 1 commit into
mainfrom
fix/591-envelope-series-cap

Conversation

@zzylol

@zzylol zzylol commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Closes #591.

Makes ObserveEnvelope honor MaxSeries under OnOverflowEvictOldest, using the same oldest-series selection as scalar/keyed admission. Eviction now removes inbound/outbound snapshot state, resets the discarded sketch, and keeps ActiveSeries accounting bounded.

Adds a regression test proving two unique envelope series with MaxSeries=1 leave exactly one live series and no stale cache entry.

Stacked on #598.

@zzylol
zzylol force-pushed the fix/590-window-timestamp-admission branch from b5807a7 to 954f90b Compare September 4, 2026 12:09
@zzylol
zzylol force-pushed the fix/591-envelope-series-cap branch from ad9b411 to 1e8d619 Compare September 4, 2026 12:09
@zzylol
zzylol changed the base branch from fix/590-window-timestamp-admission to main September 4, 2026 12:35
@zzylol
zzylol merged commit 0a7965d into main Sep 4, 2026
1 check passed
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.

asap-precompute-go: ObserveEnvelope bypasses MaxSeries under EvictOldest

1 participant