-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Aggregate counter downsampling preserves resets #143381
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
Merged
gmarouli
merged 38 commits into
elastic:main
from
gmarouli:downsampling-counters-with-resets
Mar 13, 2026
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
3b0b865
Add test to check for downsampled rate accuracy
gmarouli 9adf17a
Implement downsampling reset counter documents
gmarouli f606d95
Update unit tests
gmarouli 4401898
Update yaml tests
gmarouli a6cf2b1
Remove assertion about downsampled index being forcemerged
gmarouli 84a3ab6
Do not fetch timestamps if we have not counters to aggregate
gmarouli 4b0b8f1
Polishing
gmarouli d763b16
Fix tests
gmarouli 59616c8
Update docs/changelog/143381.yaml
gmarouli e43823b
Merge branch 'main' into downsampling-counters-with-resets
gmarouli ac83a08
Polishing
gmarouli 2b80aca
Use rate instead of max_rate in DownsampleRateIT
gmarouli b876d05
Improve comments on the lastBucketValue
gmarouli 9c86ad8
Apply suggestions from code review
gmarouli d1e5651
Improve the AggregateCounter
gmarouli d3a7e90
Use list of tuples instead of nested map
gmarouli 4f2f6ff
Add issue on the TODO comment
gmarouli 3a2ddfb
Add randomised test for a single TSID
gmarouli f0ea13b
Merge branch 'main' into downsampling-counters-with-resets
gmarouli 049eee3
Extend test cases
gmarouli 5e9fd39
Merge branch 'main' into downsampling-counters-with-resets
gmarouli 5eb52f0
Add randomised rate test with multiple time buckets and tsids
gmarouli 9fe9c7f
fix format
gmarouli a599170
Merge branch 'main' into downsampling-counters-with-resets
gmarouli 0b6809c
Fix doc count to not count reset documents multiple times
gmarouli 4cd449b
Merge branch 'main' into downsampling-counters-with-resets
gmarouli 37a41f7
Uncomment after fix
gmarouli 7000d71
Decrease flakiness
gmarouli b525321
Merge branch 'main' into downsampling-counters-with-resets
gmarouli 5696feb
Polishing
gmarouli 1c84501
Use ArrayDeque instead of stack because we do not need any thread safety
gmarouli ebc6d5f
Merge branch 'main' into downsampling-counters-with-resets
gmarouli 81a08bc
Merge branch 'main' into downsampling-counters-with-resets
gmarouli b5710ab
Create primitive arrays for field producers in one loop
gmarouli aaa5073
Merge branch 'main' into downsampling-counters-with-resets
gmarouli 66d7969
Fix assertion
gmarouli 4851045
Merge branch 'main' into downsampling-counters-with-resets
gmarouli c4a1d9c
Merge branch 'main' into downsampling-counters-with-resets
gmarouli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| area: Downsampling | ||
| issues: | ||
| - 136178 | ||
| pr: 143381 | ||
| summary: Aggregate counter downsampling preserves resets | ||
| type: enhancement |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.