Return HTTP 400 for too_many_clauses and too_many_nested_clauses errors#21725
Return HTTP 400 for too_many_clauses and too_many_nested_clauses errors#21725russcam wants to merge 2 commits into
Conversation
Queries that exceed indices.query.bool.max_clause_count now respond with HTTP 400 instead of 500. Hitting this limit is a request-side problem (simplify the query or raise the operator-configured cap), so a client error is the correct response. Signed-off-by: Russ Cam <rcam@atlassian.com>
PR Reviewer Guide 🔍(Review updated until commit 550a289)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 550a289
Previous suggestionsSuggestions up to commit 550a289
|
|
Persistent review updated to latest commit 550a289 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21725 +/- ##
============================================
- Coverage 73.52% 73.46% -0.06%
+ Complexity 74892 74814 -78
============================================
Files 5997 5997
Lines 339688 339689 +1
Branches 48961 48961
============================================
- Hits 249746 249554 -192
- Misses 70089 70220 +131
- Partials 19853 19915 +62 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…rors Relates: opensearch-project/OpenSearch#21725 Queries that exceed indices.query.bool.max_clause_count now respond with HTTP 400 instead of 500. Hitting this limit is a request-side problem (simplify the query or raise the operator-configured cap), so a client error is the correct response. Signed-off-by: Russ Cam <rcam@atlassian.com>
|
Opened related documentation PR: opensearch-project/documentation-website#12446 |
Description
Queries that exceed
indices.query.bool.max_clause_countnow respond with HTTP 400 instead of 500. Hitting this limit is a request-side problem (simplify the query or raise the operator-configured cap), so a client error is the correct response.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.