elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.24k forks source link

Improve error-handling of batch reindexing API #113943

Open cjcenizal opened 3 years ago

cjcenizal commented 3 years ago

As noted in https://github.com/elastic/kibana/pull/113822#discussion_r721925397, we should surface reindexing errors to the consumer of the batch reindex API that ships with Upgrade Assistant.

As part of this change, we can also do some minor refactoring, such as renaming mapAnyErrorToKibanaHttpResponse to handleReindexingError and expand its role to handle both Kibana and ES errors.

CC @sabarasaba

elasticmachine commented 3 years ago

Pinging @elastic/kibana-stack-management (Team:Stack Management)