[Backport 2.x] Create listener to refresh search thread resource usage (#14832)#14900
Merged
dbwiddis merged 2 commits intoopensearch-project:2.xfrom Jul 23, 2024
Merged
Conversation
…roject#14832) * [bug fix] fix incorrect coordinator node search resource usages Signed-off-by: Chenyang Ji <cyji@amazon.com> * fix bug on serialization when passing task resource usage to coordinator Signed-off-by: Chenyang Ji <cyji@amazon.com> * add more unit tests Signed-off-by: Chenyang Ji <cyji@amazon.com> * remove query insights plugin related code Signed-off-by: Chenyang Ji <cyji@amazon.com> * create per request listener to refresh task resource usage Signed-off-by: Chenyang Ji <cyji@amazon.com> * Make new listener API public Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Add changelog Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Remove wrong files added Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Address review comments Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Build fix Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Make singleton Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Address review comments Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Make sure listener runs before plugin listeners Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Spotless Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Minor fix Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> --------- Signed-off-by: Chenyang Ji <cyji@amazon.com> Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> Signed-off-by: Jay Deng <jayd0104@gmail.com> Co-authored-by: Chenyang Ji <cyji@amazon.com> Co-authored-by: Jay Deng <jayd0104@gmail.com> (cherry picked from commit 8ff3bcc)
Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com>
Contributor
|
❌ Gradle check result for 54c7a85: 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? |
Contributor
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #14900 +/- ##
============================================
+ Coverage 71.51% 71.56% +0.05%
- Complexity 62574 62631 +57
============================================
Files 5117 5118 +1
Lines 293941 293947 +6
Branches 42834 42834
============================================
+ Hits 210214 210369 +155
+ Misses 66102 65877 -225
- Partials 17625 17701 +76 ☔ View full report in Codecov by Sentry. |
dbwiddis
approved these changes
Jul 23, 2024
kkewwei
pushed a commit
to kkewwei/OpenSearch
that referenced
this pull request
Jul 24, 2024
…roject#14832) (opensearch-project#14900) * [bug fix] fix incorrect coordinator node search resource usages Signed-off-by: Chenyang Ji <cyji@amazon.com> * fix bug on serialization when passing task resource usage to coordinator Signed-off-by: Chenyang Ji <cyji@amazon.com> * add more unit tests Signed-off-by: Chenyang Ji <cyji@amazon.com> * remove query insights plugin related code Signed-off-by: Chenyang Ji <cyji@amazon.com> * create per request listener to refresh task resource usage Signed-off-by: Chenyang Ji <cyji@amazon.com> * Make new listener API public Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Add changelog Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Remove wrong files added Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Address review comments Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Build fix Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Make singleton Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Address review comments Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Make sure listener runs before plugin listeners Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Spotless Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> * Minor fix Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> --------- Signed-off-by: Chenyang Ji <cyji@amazon.com> Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> Signed-off-by: Jay Deng <jayd0104@gmail.com> Co-authored-by: Chenyang Ji <cyji@amazon.com> Co-authored-by: Jay Deng <jayd0104@gmail.com> (cherry picked from commit 8ff3bcc) Signed-off-by: Siddhant Deshmukh <deshsid@amazon.com> Signed-off-by: kkewwei <kkewwei@163.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backporting from #14832 to 2.x
Signed-off-by: Chenyang Ji cyji@amazon.com
Signed-off-by: Chenyang Ji cyji@amazon.com
Signed-off-by: Chenyang Ji cyji@amazon.com
Signed-off-by: Chenyang Ji cyji@amazon.com
Signed-off-by: Chenyang Ji cyji@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Chenyang Ji cyji@amazon.com
Signed-off-by: Siddhant Deshmukh deshsid@amazon.com
Signed-off-by: Jay Deng jayd0104@gmail.com
Co-authored-by: Chenyang Ji cyji@amazon.com
Co-authored-by: Jay Deng jayd0104@gmail.com
(cherry picked from commit 8ff3bcc)
Description
[Describe what this change achieves]
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
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.