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

Handle too_many_buckets_exception more gracefully. #44

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

myronmarston
Copy link
Collaborator

Previously, we returned a 500 Internal Server Error which was not a great experience when it would consistently happen for a particular query. Now we return a nicely formatted error telling the client to reduce the grouping cardinality instead.

Here's an example, after I used kibana to update the max_buckets setting:

PUT /_cluster/settings
{
  "persistent": {
    "search.max_buckets": 100
  }
}
image

Previously, we returned a `500 Internal Server Error` which was not
a great experience when it would consistently happen for a particular
query. Now we return a nicely formatted error telling the client to
reduce the grouping cardinality instead.
Base automatically changed from myron/upgrade-graphql to main December 3, 2024 02:00
@myronmarston myronmarston merged commit 0e0e0ad into main Dec 3, 2024
10 checks passed
@myronmarston myronmarston deleted the myron/too-many-buckets-exception branch December 3, 2024 02:00
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.

2 participants