Skip to content

[Backport 2.x] Add validation for the search backpressure cancellation settings#15969

Merged
reta merged 3 commits intoopensearch-project:2.xfrom
gaobinlong:backport/backport-15501-to-2.x
Sep 19, 2024
Merged

[Backport 2.x] Add validation for the search backpressure cancellation settings#15969
reta merged 3 commits intoopensearch-project:2.xfrom
gaobinlong:backport/backport-15501-to-2.x

Conversation

@gaobinlong
Copy link
Copy Markdown
Contributor

Description

Backport #15501 to 2.x

Related Issues

#15495

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

…nsearch-project#15501)

* Fix updating search backpressure settings crashing the cluster

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* Modify change log

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* Fix version check

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* Increase test coverage

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* Format the code

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* Optimize some code

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

* Fix typo

Signed-off-by: Gao Binlong <gbinlong@amazon.com>

---------

Signed-off-by: Gao Binlong <gbinlong@amazon.com>
(cherry picked from commit 8347d0e)
Signed-off-by: Gao Binlong <gbinlong@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 1e59f38: SUCCESS

@github-actions
Copy link
Copy Markdown
Contributor

❕ Gradle check result for c97fcc4: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 68.75000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 71.76%. Comparing base (bfdc30c) to head (34e958a).
Report is 8 commits behind head on 2.x.

Files with missing lines Patch % Lines
...kpressure/settings/SearchBackpressureSettings.java 25.00% 3 Missing and 3 partials ⚠️
...backpressure/settings/SearchShardTaskSettings.java 75.00% 1 Missing and 1 partial ⚠️
...arch/backpressure/settings/SearchTaskSettings.java 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #15969      +/-   ##
============================================
+ Coverage     71.67%   71.76%   +0.08%     
- Complexity    64624    64705      +81     
============================================
  Files          5276     5276              
  Lines        302298   302332      +34     
  Branches      43992    43995       +3     
============================================
+ Hits         216674   216961     +287     
+ Misses        67532    67232     -300     
- Partials      18092    18139      +47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gaobinlong
Copy link
Copy Markdown
Contributor Author

Hi @reta, do you know how to fix the failure of detect breaking changes check? The report shows a new public method is added(in this PR), and a public method is removed(by another PR).
image

@reta
Copy link
Copy Markdown
Contributor

reta commented Sep 18, 2024

Hi @reta, do you know how to fix the failure of detect breaking changes check? The report shows a new public method is added(in this PR), and a public method is removed(by another PR).

Thanks @gaobinlong , fix is raised #15980

@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for 34e958a: SUCCESS

@gaobinlong gaobinlong deleted the backport/backport-15501-to-2.x branch March 19, 2025 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants