-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[Transform] improve error handling of script errors #48887
Conversation
Pinging @elastic/ml-core (:ml/Transform) |
4a37804
to
13dd1f3
Compare
run elasticsearch-ci/packaging-sample-matrix |
* @param e raw Exception | ||
* @return unwrapped elasticsearch exception | ||
*/ | ||
public static ElasticsearchException getRootCauseElasticsearchException(Exception e) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
...rm/src/main/java/org/elasticsearch/xpack/transform/utils/SearchExceptionRootCauseFinder.java
Outdated
Show resolved
Hide resolved
...n/transform/src/main/java/org/elasticsearch/xpack/transform/transforms/TransformIndexer.java
Outdated
Show resolved
Hide resolved
Thanks @benwtrent for the review! Good points, I addressed your remarks and pushed an update. |
run elasticsearch-ci/bwc |
5785a62
to
68e3af0
Compare
run elasticsearch-ci/packaging-sample-matrix |
1 similar comment
run elasticsearch-ci/packaging-sample-matrix |
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
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