You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by tison <wa...@gmail.com> on 2021/04/23 15:27:23 UTC

Does CuratorFramework keep retrying operation on ConnectionLoss?

Hi curators,

Here is a case reported from the Flink community[1] that when
SessionErrorPolicy
enabled and
retry times / interval configured. It runs out retries during connection
loss case which I think could
have a better manner stop retrying if it is deterministic to fail.

Best,
tison.

[1]
https://issues.apache.org/jira/browse/FLINK-10052?focusedCommentId=17330858&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17330858

Re: Does CuratorFramework keep retrying operation on ConnectionLoss?

Posted by Enrico Olivelli <eo...@gmail.com>.
Il Sab 8 Mag 2021, 00:36 Muhammad Gelbana <m....@gmail.com> ha scritto:

> I believe it does keep trying. Please make sure you're using a suitable
> error and retrying policy.
>
> Thanks,
> Gelbana
>
>
> On Fri, Apr 23, 2021 at 5:28 PM tison <wa...@gmail.com> wrote:
>
> > Hi curators,
> >
> > Here is a case reported from the Flink community[1] that when
> > SessionErrorPolicy
> > enabled and
> > retry times / interval configured. It runs out retries during connection
> > loss case which I think could
> > have a better manner stop retrying if it is deterministic to fail.
>

Sometimes you want a time bound and you prefer to fail instead of keep
trying forever.

Can you represent the usercase in a test case?
Probably we will need to add some new API or configuration option

Enrico


>
> > Best,
> > tison.
> >
> > [1]
> >
> >
> https://issues.apache.org/jira/browse/FLINK-10052?focusedCommentId=17330858&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17330858
> >
>

Re: Does CuratorFramework keep retrying operation on ConnectionLoss?

Posted by Muhammad Gelbana <m....@gmail.com>.
I believe it does keep trying. Please make sure you're using a suitable
error and retrying policy.

Thanks,
Gelbana


On Fri, Apr 23, 2021 at 5:28 PM tison <wa...@gmail.com> wrote:

> Hi curators,
>
> Here is a case reported from the Flink community[1] that when
> SessionErrorPolicy
> enabled and
> retry times / interval configured. It runs out retries during connection
> loss case which I think could
> have a better manner stop retrying if it is deterministic to fail.
>
> Best,
> tison.
>
> [1]
>
> https://issues.apache.org/jira/browse/FLINK-10052?focusedCommentId=17330858&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17330858
>