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

[Transform] improve error handling of script errors #48887

Merged
merged 4 commits into from
Nov 18, 2019

Conversation

hendrikmuhs
Copy link
Contributor

improve error handling for script errors, treating it as irrecoverable errors which puts the task
immediately into failed state, also improves the error extraction to properly report the script error.

fixes #48467

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml/Transform)

@hendrikmuhs
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

@benwtrent benwtrent self-requested a review November 13, 2019 12:48
* @param e raw Exception
* @return unwrapped elasticsearch exception
*/
public static ElasticsearchException getRootCauseElasticsearchException(Exception e) {
Copy link
Member

Choose a reason for hiding this comment

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

Why didn't you put this in the transforms ExceptionHelper class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ExceptionHelper is used to validate input parameters, so it serves a different purpose. In the long run this generic class should move into core.

The root cause finder has a different purpose and probably can not be generalized.

@hendrikmuhs
Copy link
Contributor Author

Thanks @benwtrent for the review! Good points, I addressed your remarks and pushed an update.

@hendrikmuhs
Copy link
Contributor Author

run elasticsearch-ci/bwc
run elasticsearch-ci/default-distro

@hendrikmuhs
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

1 similar comment
@hendrikmuhs
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

@hendrikmuhs hendrikmuhs merged commit 21b34da into elastic:master Nov 18, 2019
hendrikmuhs pushed a commit that referenced this pull request Nov 18, 2019
improve error handling for script errors, treating it as irrecoverable errors which puts the task
immediately into failed state, also improves the error extraction to properly report the script 
error.

fixes #48467
jimczi pushed a commit to jimczi/elasticsearch that referenced this pull request Nov 22, 2019
improve error handling for script errors, treating it as irrecoverable errors which puts the task
immediately into failed state, also improves the error extraction to properly report the script 
error.

fixes elastic#48467
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.

[Transform] search failures due to script or mapping errors are not handled
4 participants