-
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 slice collectors to leaves association with post filter #11134
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:Checks if related components are compatible with change a19ce33 Incompatible componentsIncompatible components: [https://github.com/opensearch-project/performance-analyzer.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/reporting.git] |
…search-project#11134) Signed-off-by: Ticheng Lin <ticheng@amazon.com>
17474d0
to
fc6a3f7
Compare
Gradle Check (Jenkins) Run Completed with:
|
…search-project#11134) Signed-off-by: Ticheng Lin <ticheng@amazon.com>
fc6a3f7
to
1c1cec3
Compare
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #11134 +/- ##
============================================
+ Coverage 71.15% 71.18% +0.02%
- Complexity 58798 58811 +13
============================================
Files 4883 4883
Lines 277141 277146 +5
Branches 40280 40281 +1
============================================
+ Hits 197200 197283 +83
+ Misses 63452 63376 -76
+ Partials 16489 16487 -2
|
…search-project#11134) Signed-off-by: Ticheng Lin <ticheng@amazon.com>
1c1cec3
to
12eb4b7
Compare
Gradle Check (Jenkins) Run Completed with:
|
…search-project#11134) Signed-off-by: Ticheng Lin <ticheng@amazon.com>
12eb4b7
to
9e90dfa
Compare
Gradle Check (Jenkins) Run Completed with:
|
This is a known flaky test #10673 |
server/src/main/java/org/opensearch/search/profile/query/ConcurrentQueryProfileBreakdown.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/search/profile/query/ConcurrentQueryProfileBreakdown.java
Outdated
Show resolved
Hide resolved
…rrentQueryProfileBreakdown.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Signed-off-by: Ticheng Lin <ticheng@amazon.com>
a14f248
to
a19ce33
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
|
* Fix slice collectors to leaves association with profile enabled (#11134) Signed-off-by: Ticheng Lin <ticheng@amazon.com> * Update server/src/main/java/org/opensearch/search/profile/query/ConcurrentQueryProfileBreakdown.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Signed-off-by: Ticheng Lin <ticheng@amazon.com> --------- Signed-off-by: Ticheng Lin <ticheng@amazon.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Co-authored-by: Andriy Redko <drreta@gmail.com> (cherry picked from commit 3eda422) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…11150) * Fix slice collectors to leaves association with profile enabled (#11134) * Update server/src/main/java/org/opensearch/search/profile/query/ConcurrentQueryProfileBreakdown.java --------- (cherry picked from commit 3eda422) Signed-off-by: Ticheng Lin <ticheng@amazon.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> 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> Co-authored-by: Andriy Redko <drreta@gmail.com>
…ch-project#11134) * Fix slice collectors to leaves association with profile enabled (opensearch-project#11134) Signed-off-by: Ticheng Lin <ticheng@amazon.com> * Update server/src/main/java/org/opensearch/search/profile/query/ConcurrentQueryProfileBreakdown.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Signed-off-by: Ticheng Lin <ticheng@amazon.com> --------- Signed-off-by: Ticheng Lin <ticheng@amazon.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Co-authored-by: Andriy Redko <drreta@gmail.com>
…ch-project#11134) * Fix slice collectors to leaves association with profile enabled (opensearch-project#11134) Signed-off-by: Ticheng Lin <ticheng@amazon.com> * Update server/src/main/java/org/opensearch/search/profile/query/ConcurrentQueryProfileBreakdown.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Signed-off-by: Ticheng Lin <ticheng@amazon.com> --------- Signed-off-by: Ticheng Lin <ticheng@amazon.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Co-authored-by: Andriy Redko <drreta@gmail.com>
…ch-project#11134) * Fix slice collectors to leaves association with profile enabled (opensearch-project#11134) Signed-off-by: Ticheng Lin <ticheng@amazon.com> * Update server/src/main/java/org/opensearch/search/profile/query/ConcurrentQueryProfileBreakdown.java Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Signed-off-by: Ticheng Lin <ticheng@amazon.com> --------- Signed-off-by: Ticheng Lin <ticheng@amazon.com> Signed-off-by: Ticheng Lin <51488860+ticheng-aws@users.noreply.github.com> Co-authored-by: Andriy Redko <drreta@gmail.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
In the post filter query, a profile node is created during the creation of the filtered collector context, which occurred before the concurrent path in
ContextIndexSearcher::search()
. However, there is no association call for the filtered collector to leaves. Consequently, this led to an unexpected context size when generating the profile results.This PR adds the association for the collector to leaves before building the scorer on the post-filter profile node. Following this modification, we can identify the missing association call for
sliceCollectorsToLeave@739870973
, and we can also confirm that the leaf counts in thecontexts
map match those insliceCollectorsToLeaves
when we invoketoBreakdownMap()
to build the result.Related Issues
Resolves #10767
Check List
New functionality includes testing.New functionality has been documented.New functionality has javadoc addedCommit changes are listed out in CHANGELOG.md file (See: Changelog)Public documentation issue/PR createdBy 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.