-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Backport 2.x] Filter shards for sliced search at coordinator #17025
Conversation
* Filter shards for sliced search at coordinator Prior to this commit, a sliced search would fan out to every shard, then apply a MatchNoDocsQuery filter on shards that don't correspond to the current slice. This still creates a (useless) search context on each shard for every slice, though. For a long-running sliced scroll, this can quickly exhaust the number of available scroll contexts. This change avoids fanning out to all the shards by checking at the coordinator if a shard is matched by the current slice. This should reduce the number of open scroll contexts to max(numShards, numSlices) instead of numShards * numSlices. --------- Signed-off-by: Michael Froh <[email protected]> (cherry picked from commit f9c239d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
❌ Gradle check result for 32f689e: 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? |
server/src/main/java/org/opensearch/action/admin/cluster/shards/ClusterSearchShardsRequest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/cluster/shards/ClusterSearchShardsRequest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/routing/OperationRouting.java
Show resolved
Hide resolved
Signed-off-by: Andriy Redko <[email protected]>
c7ada28
to
72ed864
Compare
❌ Gradle check result for 72ed864: 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 @@
## 2.x #17025 +/- ##
============================================
+ Coverage 71.83% 71.96% +0.12%
- Complexity 65588 65683 +95
============================================
Files 5318 5318
Lines 305779 305807 +28
Branches 44583 44596 +13
============================================
+ Hits 219653 220061 +408
+ Misses 67817 67388 -429
- Partials 18309 18358 +49 ☔ View full report in Codecov by Sentry. |
Backport f9c239d from #16771.