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

Fix exemplar list in Histogram and Count aggregations #3364

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

kkondaka
Copy link
Collaborator

Description

ExemplarList generated for Count and Histogram aggregate actions is accumulating the exemplars across different aggregation periods. It should be reset every time new aggregation window starts. This fix resets and includes only new exemplar list whenever a new metric event is generated at the end of aggregation duration.

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • [X ] New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • [ X] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Copy link
Member

@dlvenable dlvenable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good fix. But, why isn't the groupState reset between windows? Other aggregations could have similar issues.

@dlvenable dlvenable added this to the v2.5 milestone Sep 20, 2023
@kkondaka kkondaka merged commit 542b451 into opensearch-project:main Sep 20, 2023
25 of 26 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 20, 2023
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Co-authored-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
(cherry picked from commit 542b451)
asifsmohammed pushed a commit that referenced this pull request Sep 26, 2023
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Co-authored-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
(cherry picked from commit 542b451)

Co-authored-by: kkondaka <41027584+kkondaka@users.noreply.github.com>
@kkondaka kkondaka deleted the exemplar-fix branch May 13, 2024 05:52
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.

2 participants