Skip to content

FailureListener.onFailure should allow to handle the exception which cause failure #90081

Open
@HonestManXin

Description

@HonestManXin

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.

public void onFailure(Node node, Exception e) throw Exception {}

Let the user decide retry or not

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions