elastic/kibana

Retry elasticserach API call utility

Aperta

#232.666 aperta il 22 ago 2025

 (2 commenti) (0 reazioni) (0 assegnatari)TypeScript (8021 fork)batch import
Team:Coreblockedgood first issue

Metriche repository

Star
 (19.065 stelle)
Metriche merge PR
 (Merge medio 1g 16h) (999 PR mergiate in 30 g)

Descrizione

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

Guida contributor