elastic/kibana

Retry elasticserach API call utility

Open

#232,666 创建于 2025年8月22日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)TypeScript (19,065 star) (8,021 fork)batch import
Team:Coreblockedgood first issue

描述

In https://github.com/elastic/kibana/pull/228315 we're exposing an isRetryableEsClientError utility, but it's only really useful if you're going to retry the API request that produced the retryable error. Core should expose such a function to remove the need for plugins to implement this themselves.

The function should take as input another function to test whether a response error is retryable (e.g. isRetryableEsClientError) and a configurable amount of retries.

Blocked as this might be better implemented in the client: https://github.com/elastic/elasticsearch-js/issues/1139

贡献者指南

Retry elasticserach API call utility · elastic/kibana#232666 | Good First Issue