-
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
Add dynamic index and cluster setting for concurrent segment search #7956
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #7956 +/- ##
============================================
- Coverage 71.44% 70.88% -0.56%
+ Complexity 56913 56551 -362
============================================
Files 4715 4716 +1
Lines 267246 267268 +22
Branches 39186 39187 +1
============================================
- Hits 190930 189466 -1464
- Misses 60492 61824 +1332
- Partials 15824 15978 +154
|
Gradle Check (Jenkins) Run Completed with:
|
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.
LGTM. Thanks @jed326 for working on this
Gradle Check (Jenkins) Run Completed with:
|
Do we need a corresponding doc update for this issue? Seems important to note somewhere that the index setting overrides the cluster setting but not sure where that would go. Maybe could just track this as a part of opensearch-project/documentation-webstie#2662? |
Definitely, since we are adding new settings, those have to be documented, thanks @jed326 |
@jed326 LGTM, one comment to cleanup the |
Signed-off-by: Jay Deng <[email protected]>
server/src/main/java/org/opensearch/search/query/ConcurrentQueryPhaseSearcher.java
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
@reta looks like tests are passing, I think we should be good to merge now. Thanks! |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-7956-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 068404ed1cef5e1d023816d57054aef98a7aa343
# Push it to GitHub
git push --set-upstream origin backport/backport-7956-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
@jed326 ah ... the auto 2.x backport failed, could you please submit the manual one? thank you |
@reta Sure will do |
…pensearch-project#7956) * Add dynamic index and cluster setting for concurrent segment search Signed-off-by: Jay Deng <[email protected]> * Use feature flagged settings map Signed-off-by: Jay Deng <[email protected]> --------- Signed-off-by: Jay Deng <[email protected]>
// Test that we throw an exception without the feature flag | ||
SettingsModule module = new SettingsModule(Settings.EMPTY); | ||
IndexScopedSettings indexScopedSettings = module.getIndexScopedSettings(); | ||
expectThrows( |
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.
This is an IllegalArgumentException
in 2.x
…pensearch-project#7956) * Add dynamic index and cluster setting for concurrent segment search Signed-off-by: Jay Deng <[email protected]> * Use feature flagged settings map Signed-off-by: Jay Deng <[email protected]> --------- Signed-off-by: Jay Deng <[email protected]>
…7956) (#8034) * Add dynamic index and cluster setting for concurrent segment search * Use feature flagged settings map --------- Signed-off-by: Jay Deng <[email protected]>
…pensearch-project#7956) (opensearch-project#8034) * Add dynamic index and cluster setting for concurrent segment search * Use feature flagged settings map --------- Signed-off-by: Jay Deng <[email protected]>
…pensearch-project#7956) * Add dynamic index and cluster setting for concurrent segment search Signed-off-by: Jay Deng <[email protected]> * Use feature flagged settings map Signed-off-by: Jay Deng <[email protected]> --------- Signed-off-by: Jay Deng <[email protected]> Signed-off-by: Rishab Nahata <[email protected]>
@jed326 it seems that feature flag has not been removed for concurrent_search, does this mean that to enable it we need both, feature flag and new index/cluster setting? |
@martin-gaievski Yes the feature flag is not removed. The cluster setting defaults to true so concurrent search should be enabled by default once the feature flag is enabled. |
…pensearch-project#7956) * Add dynamic index and cluster setting for concurrent segment search Signed-off-by: Jay Deng <[email protected]> * Use feature flagged settings map Signed-off-by: Jay Deng <[email protected]> --------- Signed-off-by: Jay Deng <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
Add dynamic cluster and index setting to control concurrent segment search. Index level setting overrides cluster level setting.
Related Issues
Resolves #7356
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.