Skip to content

ES client exceptions thrown during migration provide an error reason #97970

Closed

Description

SO migrations heavily rely on indexing, searching, and writing data to Elasticsearch. Any request to Elasticsearch may fail. The current implementation of SO migration does not show the error reason provided by the Elasticsarch server in logs. Which makes it's nearly impossible to debug failures that originated in the Elasticsearch server.
Given: a search request with a closed PIT.
actual error message in logs: ResponseError: illegal_argument_exception
expected error message in logs: ResponseError. root_cause: [{ type: 'illegal_argument_exception', reason: '...' }]

We might consider fixing the serialization format in @elastic/elasticsearch to cover all the use-cases. elastic/elasticsearch-js#1452

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

Metadata

Assignees

Labels

Team:CoreCore services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etcbugFixes for quality problems that affect the customer experienceproject:ResilientSavedObjectMigrationsReduce Kibana upgrade failures by making saved object migrations more resilienttriage_needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions