Skip to content

[Backport 2.x] Stop processing search requests when _msearch is canceled#17119

Merged
reta merged 1 commit into2.xfrom
backport/backport-17005-to-2.x
Jan 25, 2025
Merged

[Backport 2.x] Stop processing search requests when _msearch is canceled#17119
reta merged 1 commit into2.xfrom
backport/backport-17005-to-2.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport 77e91c2 from #17005.

Prior to this fix, the _msearch API would keep running search requests
even after being canceled. With this change, we explicitly check if
the task has been canceled before kicking off subsequent requests.

---------

Signed-off-by: Michael Froh <froh@amazon.com>
(cherry picked from commit 77e91c2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for fe5b9ba: 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?

@github-actions
Copy link
Copy Markdown
Contributor

✅ Gradle check result for fe5b9ba: SUCCESS

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 25, 2025

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 72.00%. Comparing base (a56a08e) to head (fe5b9ba).
Report is 4 commits behind head on 2.x.

Files with missing lines Patch % Lines
...arch/action/search/TransportMultiSearchAction.java 70.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x   #17119      +/-   ##
============================================
+ Coverage     71.90%   72.00%   +0.10%     
- Complexity    65776    65874      +98     
============================================
  Files          5325     5325              
  Lines        306417   306459      +42     
  Branches      44681    44698      +17     
============================================
+ Hits         220335   220677     +342     
+ Misses        67715    67420     -295     
+ Partials      18367    18362       -5     

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

@reta reta merged commit bf42c3e into 2.x Jan 25, 2025
@github-actions github-actions bot deleted the backport/backport-17005-to-2.x branch January 25, 2025 03:45
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.

1 participant