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

Throw an exception when memory usage estimation endpoint encounters empty data frame. #49143

Merged
merged 2 commits into from
Nov 15, 2019

Conversation

przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Nov 15, 2019

When the data frame is empty from the perspective of the analysis, we should not try to estimate memory usage as the analysis is not going to be run anyway.
Instead, this PR makes memory usage estimation endpoint to throw BadRequestException so that the user knows that it's their index they need to fix.

Relates #49140

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants