Skip to content
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] [Bugfix] Better exception handling in search pipelines #7747

Merged
merged 1 commit into from
May 25, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport cf02b96 from #7735.

* [Bugfix] Better exception handling in search pipelines

Thanks to @noCharger for reporting a failing negative test case.

Since we were rethrowing exceptions when resolving search pipelines and
processing search requests, that could end up killing the listener
thread.

Also, we want to make sure that any exception thrown from search
pipelines are wrapped in SearchPipelineProcessingException.

Signed-off-by: Michael Froh <froh@amazon.com>

* Add changelog entry and unit tests

Signed-off-by: Michael Froh <froh@amazon.com>

* Add check on error message for negative test

Signed-off-by: Michael Froh <froh@amazon.com>

* Fix misleading commment in test

Signed-off-by: Michael Froh <froh@amazon.com>

---------

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

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.basic.SearchWithRandomIOExceptionsIT.testRandomDirectoryIOExceptions
      1 org.opensearch.search.basic.SearchWithRandomIOExceptionsIT.classMethod

@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Merging #7747 (0e4683a) into 2.x (5f814d0) will increase coverage by 0.03%.
The diff coverage is 80.00%.

@@             Coverage Diff              @@
##                2.x    #7747      +/-   ##
============================================
+ Coverage     70.49%   70.53%   +0.03%     
- Complexity    56362    56366       +4     
============================================
  Files          4663     4663              
  Lines        267646   267648       +2     
  Branches      39637    39637              
============================================
+ Hits         188680   188780     +100     
+ Misses        62662    62569      -93     
+ Partials      16304    16299       -5     
Impacted Files Coverage Δ
...pensearch/action/search/TransportSearchAction.java 76.40% <0.00%> (+5.84%) ⬆️
...nsearch/search/pipeline/SearchPipelineService.java 83.88% <100.00%> (+1.11%) ⬆️

... and 481 files with indirect coverage changes

@reta reta merged commit 540e80f into 2.x May 25, 2023
29 checks passed
@github-actions github-actions bot deleted the backport/backport-7735-to-2.x branch May 25, 2023 01:24
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.

None yet

1 participant