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
[Bugfix] Better exception handling in search pipelines #7735
[Bugfix] Better exception handling in search pipelines #7735
Conversation
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>
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.
Thanks for the instant bugfix. Let's add changelog and also one unit test case for SearchPipelineService.java
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #7735 +/- ##
============================================
+ Coverage 70.63% 70.76% +0.12%
- Complexity 56099 56162 +63
============================================
Files 4680 4680
Lines 266083 266085 +2
Branches 39074 39074
============================================
+ Hits 187955 188296 +341
+ Misses 62187 61808 -379
- Partials 15941 15981 +40
|
...ine-common/src/yamlRestTest/resources/rest-api-spec/test/search_pipeline/30_filter_query.yml
Show resolved
Hide resolved
Signed-off-by: Michael Froh <froh@amazon.com>
Signed-off-by: Michael Froh <froh@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
server/src/test/java/org/opensearch/search/pipeline/SearchPipelineServiceTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Michael Froh <froh@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Failing tests on Gradle check seem to be related to #7679 (Not exactly the same failure -- this one is failing because the index already exists, which I saw on a previous PR.) |
Gradle Check (Jenkins) Run Completed with:
|
* [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>
* [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. * Add changelog entry and unit tests * Add check on error message for negative test * Fix misleading commment in test --------- (cherry picked from commit cf02b96) Signed-off-by: Michael Froh <froh@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…oject#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>
…oject#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>
…oject#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>
…oject#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> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Description
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.
Related Issues
N/A
Check List
[ ] New functionality includes testing.[ ] All tests pass[ ] New functionality has been documented.[ ] New functionality has javadoc added[ ] Commit changes are listed out in CHANGELOG.md file (See: Changelog)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.