You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ratis.apache.org by Pietro Tollot <pt...@icloud.com> on 2020/11/23 08:53:07 UTC
Behaviour of send client method when a leader miss
Hi, my doubt is how is defined the behaviour of the client send method in a scenario in which the leader failed and has not been elected a new one yet. Does the method block until a new leader is elected? Does it rises an exception?
Thanks
Re: Behaviour of send client method when a leader miss
Posted by Tsz Wo Sze <sz...@gmail.com>.
The client will retry according to the RetryPolicy (default is
RetryPolicies.retryForeverNoSleep()). The default policy will retry
forever. The other policies will retry to a limit and then rise an
exception. The policy can be set by RaftClient.Builder.setRetryPolicy(..).
Hope it helps.
Tsz-Wo
On Mon, Nov 23, 2020 at 4:53 PM Pietro Tollot <pt...@icloud.com> wrote:
>
> Hi, my doubt is how is defined the behaviour of the client send method in
a scenario in which the leader failed and has not been elected a new one
yet. Does the method block until a new leader is elected? Does it rises an
exception?
>
> Thanks