elastic/kibana

Retry elasticserach API call utility

开放

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

 (2 条评论) (0 个反应) (0 位负责人)TypeScript (8,021 个派生)batch import
Team:Coreblockedgood first issue

仓库指标

星标
 (19,065 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南