-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 double invocation of postCollection when MultiBucketCollector is present #14015
Conversation
…present Signed-off-by: Jay Deng <[email protected]>
❌ Gradle check result for 2d9e52d: 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? |
@sohami @reta @dennisoelkers could you please take a look? Thanks! |
❌ Gradle check result for 9b2ebbd: 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? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14015 +/- ##
============================================
+ Coverage 71.42% 71.56% +0.13%
- Complexity 59978 61344 +1366
============================================
Files 4985 5066 +81
Lines 282275 288263 +5988
Branches 40946 41754 +808
============================================
+ Hits 201603 206281 +4678
- Misses 63999 64963 +964
- Partials 16673 17019 +346 ☔ View full report in Codecov by Sentry. |
@jed326: Tested it locally and it fixes the problem. Great work! Many thanks for the quick investigation and fix, as well as providing a workaround for 2.14! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the problem described in #14000.
server/src/main/java/org/opensearch/search/aggregations/BucketCollectorProcessor.java
Show resolved
Hide resolved
Thank you @jed326 ! |
...r/src/main/java/org/opensearch/search/aggregations/bucket/BestBucketsDeferringCollector.java
Show resolved
Hide resolved
…present (#14015) Signed-off-by: Jay Deng <[email protected]> (cherry picked from commit 1cded65) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…present (#14015) Signed-off-by: Jay Deng <[email protected]> (cherry picked from commit 1cded65) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…present (#14015) Signed-off-by: Jay Deng <[email protected]> (cherry picked from commit 1cded65) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…present (#14015) (#14048) (cherry picked from commit 1cded65) Signed-off-by: Jay Deng <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…present (opensearch-project#14015) Signed-off-by: Jay Deng <[email protected]>
…present (opensearch-project#14015) (opensearch-project#14048) (cherry picked from commit 1cded65) Signed-off-by: Jay Deng <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Signed-off-by: kkewwei <[email protected]>
…present (opensearch-project#14015) Signed-off-by: Jay Deng <[email protected]>
Description
Fixes a bug where
postCollection
would be called twice when aMultiBucketCollector
is present. This was resulting in double counting the docs in the last segment for deferred bucket collectors.Related Issues
Resolves #14000
Check List
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.