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

[7.x Backport] Force selection of calendar or fixed intervals #41906

Merged
merged 9 commits into from
May 20, 2019
Prev Previous commit
Next Next commit
Fix max_bucket test by disallowing partial results (#41959)
The Max Bucket test can potentially return a partial response,
where one of the shards suceeds but another fails due to the max_bucket
setting.  In the case of a partial failure, the status code is 200 OK
since some results were returned (with failures listed in the body).

This makes the yaml test fail since it is expecting a 4xx/5xx failure
when catching exception messages.

We need to disallow partial results so that the entire query fails
and we can check for the max_bucket failure.
polyfractal committed May 9, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 7049882503717a1802dd351b978f5b3a654d1389
Original file line number Diff line number Diff line change
@@ -89,6 +89,7 @@ setup:
catch: /.*Trying to create too many buckets.*/
search:
rest_total_hits_as_int: true
allow_partial_search_results: false
index: test
body:
aggregations:
@@ -106,6 +107,7 @@ setup:
catch: /.*Trying to create too many buckets.*/
search:
rest_total_hits_as_int: true
allow_partial_search_results: false
index: test
body:
aggregations: