Skip to content

Conversation

@sandeshkr419
Copy link
Member

@sandeshkr419 sandeshkr419 commented Mar 4, 2025

Description

Fixes ordering change of pre-computation steps in Max/Min aggregator which was accidentally changed in #16733

Related Issues

For match-all cases, max/min aggregation without any parent/child aggregations can be precomputed faster than star-tree, so that's why it was prioritized over star-tree pre-computation. This ordering was modified accidentally in the above refactoring change, so making this change back.

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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: Sandesh Kumar <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2025

✅ Gradle check result for ff08b28: SUCCESS

@codecov
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

Attention: Patch coverage is 26.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 72.99%. Comparing base (f6d6aa6) to head (ff08b28).
Report is 49 commits behind head on main.

Files with missing lines Patch % Lines
...rch/search/aggregations/metrics/MaxAggregator.java 25.00% 5 Missing and 1 partial ⚠️
...rch/search/aggregations/metrics/MinAggregator.java 28.57% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17505      +/-   ##
============================================
+ Coverage     72.47%   72.99%   +0.51%     
- Complexity    65705    66151     +446     
============================================
  Files          5307     5307              
  Lines        304774   304775       +1     
  Branches      44193    44193              
============================================
+ Hits         220898   222469    +1571     
+ Misses        65738    64474    -1264     
+ Partials      18138    17832     -306     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sandeshkr419 sandeshkr419 changed the title [draft] fix precompute ordering [bug fix] fix precompute ordering in max & min aggregator Mar 4, 2025
@sandeshkr419 sandeshkr419 reopened this Mar 19, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in Performance Roadmap Mar 19, 2025
@github-project-automation github-project-automation bot moved this from Done to In Progress in Performance Roadmap Mar 19, 2025
@github-actions
Copy link
Contributor

❌ Gradle check result for ff08b28: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-project-automation github-project-automation bot moved this from In Progress to Done in Performance Roadmap Mar 19, 2025
@sandeshkr419 sandeshkr419 reopened this Mar 19, 2025
@github-project-automation github-project-automation bot moved this from Done to In Progress in Performance Roadmap Mar 19, 2025
@github-actions
Copy link
Contributor

❌ Gradle check result for ff08b28: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@sandeshkr419 sandeshkr419 reopened this Mar 20, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Performance Roadmap Mar 20, 2025
@github-project-automation github-project-automation bot moved this from Done to In Progress in Performance Roadmap Mar 20, 2025
@github-actions
Copy link
Contributor

✅ Gradle check result for ff08b28: SUCCESS

@msfroh msfroh merged commit cdcfcbc into opensearch-project:main Mar 20, 2025
144 of 152 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Performance Roadmap Mar 20, 2025
@msfroh msfroh removed the backport 2.x Backport to 2.x branch label Mar 20, 2025
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 20, 2025
Signed-off-by: Sandesh Kumar <[email protected]>
(cherry picked from commit cdcfcbc)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@sandeshkr419 sandeshkr419 deleted the maxmin branch March 20, 2025 22:19
@andrross
Copy link
Member

@msfroh @sandeshkr419 Should this be backported to 2.19 to go in the next patch release?

@msfroh
Copy link
Contributor

msfroh commented Mar 20, 2025

I assumed that since star trees are not enabled by default, we don't need to backport fixes. @sandeshkr419, what do you think?

@sandeshkr419
Copy link
Member Author

Star-tree are not enabled by default but users can turn on experimental features and in that scenario they will see performance degradation which will result in a negative user sentiment.

Plus, we mistakenly introduced this bug as part of code cleanup #16733 in 2.19 so I think we should back-port this to 2.19 patch release to keep things intact.

@sandeshkr419
Copy link
Member Author

sandeshkr419 commented Mar 31, 2025

@andrross @msfroh - Gentle reminder to check on #17505 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working skip-changelog

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants