-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Handle ES failures on template installation #70586
Comments
Pinging @elastic/ingest-management (Feature:EPM) |
Strategy for error handling is here: #66688 In particular, we've been advised to move away from |
Could this be closed @skh @jfsiii @neptunian ? |
@ph, @jonathan-buttner knows best what this is about but we are able to identify an ES error and include the reason in the HTTP response. See #76865 |
The We should at least check if the corresponding errors can be triggered in tests, and add tests to verify the current error handling is ok. |
Yeah this ticket was just to track some of the |
@skh @jonathan-buttner I updated the description to point to the new lines. Both of them are deal with communicating with Elasticsearch ( The two things that come to mind are
Are there specific ES errors we want to test? Should there be different behavior for different errors beyond the HTTP status/response? For (a) I see the testing as
(b) is more challenging since Perhaps we could assert that given (a) the error given to |
Describe the feature:
There are a couple of TODOs in the EPM template generation (both index template and component template) code to handle any errors returned from ES
here:
kibana/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/install.ts
Line 275 in 2d0106d
and here:
kibana/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/install.ts
Line 319 in 2d0106d
One solution would be to just wrap them in a
try/catch
and throw aBoom
. This may cause installation of the rest of the required packages to fail though.The text was updated successfully, but these errors were encountered: