FailureListener.onFailure should allow to handle the exception which cause failure #90081
Labels
:Clients/Java Low Level REST Client
Minimal dependencies Java Client for Elasticsearch
>enhancement
Team:Clients
Meta label for clients team
Description
In RestClient.performRequest if a exception happen when call CloseableHttpAsyncClient.execute, FailureListener.onFailure called with the node performRequest, then retry next node。
But for response time sensitive application, we don't want to retry for some exception(ie: socket timeout exception), so i think we should add a method for FailureListener.
Let the user decide retry or not
The text was updated successfully, but these errors were encountered: