Skip to content

Conversation

@dimitris-athanasiou
Copy link
Contributor

…167)

When a datafeed encounters errors extracting data, often
the error is an instance of SearchPhaseExecutionException.
In that case the top level error message is Partial shards failure
which is not very informative.

This commit refactors a transform util method from
ExceptionRootCauseFinder, which unwraps exceptions with special
handling for SearchPhaseExecutionException, and makes use of
it from datafeed ProblemTracker in order to provide a more
useful error message.

Backport of #66167

…stic#66167)

When a datafeed encounters errors extracting data, often
the error is an instance of `SearchPhaseExecutionException`.
In that case the top level error message is `Partial shards failure`
which is not very informative.

This commit refactors a transform util method from
`ExceptionRootCauseFinder`, which unwraps exceptions with special
handling for `SearchPhaseExecutionException`, and makes use of
it from datafeed `ProblemTracker` in order to provide a more
useful error message.

Backport of elastic#66167
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@dimitris-athanasiou dimitris-athanasiou merged commit a6bad06 into elastic:7.x Dec 14, 2020
@dimitris-athanasiou dimitris-athanasiou deleted the report-cause-when-datafeed-extraction-encounters-error-7x branch December 14, 2020 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug :ml Machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants