You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Jordan Zimmerman <jo...@jordanzimmerman.com> on 2014/11/10 16:56:35 UTC

NewConfigNoQuorum?

In Alexander’s ZK meetup talk, he mentioned a new exception: NewConfigNoQuorum. How should Curator handle this? Should the reconfig operation just be retried when this is thrown or does it imply a deeper problem?

-Jordan



Re: NewConfigNoQuorum?

Posted by Alexander Shraer <sh...@gmail.com>.
Sure, makes sense. If it still doesn't work after the retries you'll have
to throw it to the user.

On Mon, Nov 10, 2014 at 2:39 PM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> Curator has a configurable retry policy. Most people use an Exponential
> retry limited to 3-5 times.
>
> -JZ
>
>
> On November 10, 2014 at 5:14:26 PM, Alexander Shraer (shralex@gmail.com)
> wrote:
>
> This happens if you're trying to reconfigure to a new configuration S' but
> there is no quorum of S' connected
> and synced with the current leader. This could be either transient or more
> serious, depends...
> For example it could be the case that you are trying to add a few servers
> and there is a lot of state so
> syncing isn't complete yet and you just need to retry later. On the other
> hand it could be that S' includes
> servers that have crashed or don't exist, so retrying won't help.
>
> On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly <iv...@apache.org> wrote:
>
> > Isn't this a transient error that occurs while the cluster is
> > reconfiguring? Seems to me that a retry would be correct.
> >
> > -Ivan
> >
> > On 10 November 2014 16:56, Jordan Zimmerman <jo...@jordanzimmerman.com>
>
> > wrote:
> > > In Alexander’s ZK meetup talk, he mentioned a new exception:
> > NewConfigNoQuorum. How should Curator handle this? Should the reconfig
> > operation just be retried when this is thrown or does it imply a deeper
> > problem?
> > >
> > > -Jordan
> > >
> > >
> >
>
>

Re: NewConfigNoQuorum?

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
Curator has a configurable retry policy. Most people use an Exponential retry limited to 3-5 times.

-JZ


On November 10, 2014 at 5:14:26 PM, Alexander Shraer (shralex@gmail.com) wrote:

This happens if you're trying to reconfigure to a new configuration S' but  
there is no quorum of S' connected  
and synced with the current leader. This could be either transient or more  
serious, depends...  
For example it could be the case that you are trying to add a few servers  
and there is a lot of state so  
syncing isn't complete yet and you just need to retry later. On the other  
hand it could be that S' includes  
servers that have crashed or don't exist, so retrying won't help.  

On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly <iv...@apache.org> wrote:  

> Isn't this a transient error that occurs while the cluster is  
> reconfiguring? Seems to me that a retry would be correct.  
>  
> -Ivan  
>  
> On 10 November 2014 16:56, Jordan Zimmerman <jo...@jordanzimmerman.com>  
> wrote:  
> > In Alexander’s ZK meetup talk, he mentioned a new exception:  
> NewConfigNoQuorum. How should Curator handle this? Should the reconfig  
> operation just be retried when this is thrown or does it imply a deeper  
> problem?  
> >  
> > -Jordan  
> >  
> >  
>  

Re: NewConfigNoQuorum?

Posted by Alexander Shraer <sh...@gmail.com>.
But on the other hand the user will have to handle this error anyway in
some cases,
so perhaps just throw it back ?

On Mon, Nov 10, 2014 at 2:34 PM, Alexander Shraer <sh...@gmail.com> wrote:

> Not sure. If you know how long state copying & syncing should take then
> you could wait for that
> time, retry and then throw it back if it still doesn't work.
>
> On Mon, Nov 10, 2014 at 2:18 PM, Jordan Zimmerman <
> jordan@jordanzimmerman.com> wrote:
>
>> So, what’s the correct way to handle the exception? Should Curator throw
>> it back to the user or retry?
>>
>> -JZ
>>
>>
>> On November 10, 2014 at 5:14:26 PM, Alexander Shraer (shralex@gmail.com)
>> wrote:
>>
>> This happens if you're trying to reconfigure to a new configuration S'
>> but
>> there is no quorum of S' connected
>> and synced with the current leader. This could be either transient or
>> more
>> serious, depends...
>> For example it could be the case that you are trying to add a few servers
>> and there is a lot of state so
>> syncing isn't complete yet and you just need to retry later. On the other
>> hand it could be that S' includes
>> servers that have crashed or don't exist, so retrying won't help.
>>
>> On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly <iv...@apache.org> wrote:
>>
>> > Isn't this a transient error that occurs while the cluster is
>> > reconfiguring? Seems to me that a retry would be correct.
>> >
>> > -Ivan
>> >
>> > On 10 November 2014 16:56, Jordan Zimmerman <jo...@jordanzimmerman.com>
>>
>> > wrote:
>> > > In Alexander’s ZK meetup talk, he mentioned a new exception:
>> > NewConfigNoQuorum. How should Curator handle this? Should the reconfig
>> > operation just be retried when this is thrown or does it imply a deeper
>> > problem?
>> > >
>> > > -Jordan
>> > >
>> > >
>> >
>>
>>
>

Re: NewConfigNoQuorum?

Posted by Alexander Shraer <sh...@gmail.com>.
to retry indefinitely ?? or for how long

On Mon, Nov 10, 2014 at 2:35 PM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> Our current implementation is to Retry. Unless we hear differently, that’s
> how it will remain.
>
> -JZ
>
>
> On November 10, 2014 at 5:34:47 PM, Alexander Shraer (shralex@gmail.com)
> wrote:
>
> Not sure. If you know how long state copying & syncing should take then
> you could wait for that
> time, retry and then throw it back if it still doesn't work.
>
> On Mon, Nov 10, 2014 at 2:18 PM, Jordan Zimmerman <
> jordan@jordanzimmerman.com> wrote:
>
>>  So, what’s the correct way to handle the exception? Should Curator
>> throw it back to the user or retry?
>>
>>  -JZ
>>
>>
>> On November 10, 2014 at 5:14:26 PM, Alexander Shraer (shralex@gmail.com)
>> wrote:
>>
>>  This happens if you're trying to reconfigure to a new configuration S'
>> but
>> there is no quorum of S' connected
>> and synced with the current leader. This could be either transient or more
>> serious, depends...
>> For example it could be the case that you are trying to add a few servers
>> and there is a lot of state so
>> syncing isn't complete yet and you just need to retry later. On the other
>> hand it could be that S' includes
>> servers that have crashed or don't exist, so retrying won't help.
>>
>> On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly <iv...@apache.org> wrote:
>>
>> > Isn't this a transient error that occurs while the cluster is
>> > reconfiguring? Seems to me that a retry would be correct.
>> >
>> > -Ivan
>> >
>> > On 10 November 2014 16:56, Jordan Zimmerman <jordan@jordanzimmerman.com
>> >
>> > wrote:
>> > > In Alexander’s ZK meetup talk, he mentioned a new exception:
>> > NewConfigNoQuorum. How should Curator handle this? Should the reconfig
>> > operation just be retried when this is thrown or does it imply a deeper
>> > problem?
>> > >
>> > > -Jordan
>> > >
>> > >
>> >
>>
>>
>

Re: NewConfigNoQuorum?

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
Our current implementation is to Retry. Unless we hear differently, that’s how it will remain.

-JZ


On November 10, 2014 at 5:34:47 PM, Alexander Shraer (shralex@gmail.com) wrote:

Not sure. If you know how long state copying & syncing should take then you could wait for that
time, retry and then throw it back if it still doesn't work.

On Mon, Nov 10, 2014 at 2:18 PM, Jordan Zimmerman <jo...@jordanzimmerman.com> wrote:
So, what’s the correct way to handle the exception? Should Curator throw it back to the user or retry?

-JZ


On November 10, 2014 at 5:14:26 PM, Alexander Shraer (shralex@gmail.com) wrote:

This happens if you're trying to reconfigure to a new configuration S' but
there is no quorum of S' connected
and synced with the current leader. This could be either transient or more
serious, depends...
For example it could be the case that you are trying to add a few servers
and there is a lot of state so
syncing isn't complete yet and you just need to retry later. On the other
hand it could be that S' includes
servers that have crashed or don't exist, so retrying won't help.

On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly <iv...@apache.org> wrote:

> Isn't this a transient error that occurs while the cluster is
> reconfiguring? Seems to me that a retry would be correct.
>
> -Ivan
>
> On 10 November 2014 16:56, Jordan Zimmerman <jo...@jordanzimmerman.com>
> wrote:
> > In Alexander’s ZK meetup talk, he mentioned a new exception:
> NewConfigNoQuorum. How should Curator handle this? Should the reconfig
> operation just be retried when this is thrown or does it imply a deeper
> problem?
> >
> > -Jordan
> >
> >
>


Re: NewConfigNoQuorum?

Posted by Alexander Shraer <sh...@gmail.com>.
Not sure. If you know how long state copying & syncing should take then you
could wait for that
time, retry and then throw it back if it still doesn't work.

On Mon, Nov 10, 2014 at 2:18 PM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> So, what’s the correct way to handle the exception? Should Curator throw
> it back to the user or retry?
>
> -JZ
>
>
> On November 10, 2014 at 5:14:26 PM, Alexander Shraer (shralex@gmail.com)
> wrote:
>
> This happens if you're trying to reconfigure to a new configuration S' but
> there is no quorum of S' connected
> and synced with the current leader. This could be either transient or more
> serious, depends...
> For example it could be the case that you are trying to add a few servers
> and there is a lot of state so
> syncing isn't complete yet and you just need to retry later. On the other
> hand it could be that S' includes
> servers that have crashed or don't exist, so retrying won't help.
>
> On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly <iv...@apache.org> wrote:
>
> > Isn't this a transient error that occurs while the cluster is
> > reconfiguring? Seems to me that a retry would be correct.
> >
> > -Ivan
> >
> > On 10 November 2014 16:56, Jordan Zimmerman <jo...@jordanzimmerman.com>
>
> > wrote:
> > > In Alexander’s ZK meetup talk, he mentioned a new exception:
> > NewConfigNoQuorum. How should Curator handle this? Should the reconfig
> > operation just be retried when this is thrown or does it imply a deeper
> > problem?
> > >
> > > -Jordan
> > >
> > >
> >
>
>

Re: NewConfigNoQuorum?

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
So, what’s the correct way to handle the exception? Should Curator throw it back to the user or retry?

-JZ


On November 10, 2014 at 5:14:26 PM, Alexander Shraer (shralex@gmail.com) wrote:

This happens if you're trying to reconfigure to a new configuration S' but  
there is no quorum of S' connected  
and synced with the current leader. This could be either transient or more  
serious, depends...  
For example it could be the case that you are trying to add a few servers  
and there is a lot of state so  
syncing isn't complete yet and you just need to retry later. On the other  
hand it could be that S' includes  
servers that have crashed or don't exist, so retrying won't help.  

On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly <iv...@apache.org> wrote:  

> Isn't this a transient error that occurs while the cluster is  
> reconfiguring? Seems to me that a retry would be correct.  
>  
> -Ivan  
>  
> On 10 November 2014 16:56, Jordan Zimmerman <jo...@jordanzimmerman.com>  
> wrote:  
> > In Alexander’s ZK meetup talk, he mentioned a new exception:  
> NewConfigNoQuorum. How should Curator handle this? Should the reconfig  
> operation just be retried when this is thrown or does it imply a deeper  
> problem?  
> >  
> > -Jordan  
> >  
> >  
>  

Re: NewConfigNoQuorum?

Posted by Alexander Shraer <sh...@gmail.com>.
This happens if you're trying to reconfigure to a new configuration S' but
there is no quorum of S' connected
and synced with the current leader. This could be either transient or more
serious, depends...
For example it could be the case that you are trying to add a few servers
and there is a lot of state so
syncing isn't complete yet and you just need to retry later. On the other
hand it could be that S' includes
servers that have crashed or don't exist, so retrying won't help.

On Mon, Nov 10, 2014 at 8:54 AM, Ivan Kelly <iv...@apache.org> wrote:

> Isn't this a transient error that occurs while the cluster is
> reconfiguring? Seems to me that a retry would be correct.
>
> -Ivan
>
> On 10 November 2014 16:56, Jordan Zimmerman <jo...@jordanzimmerman.com>
> wrote:
> > In Alexander’s ZK meetup talk, he mentioned a new exception:
> NewConfigNoQuorum. How should Curator handle this? Should the reconfig
> operation just be retried when this is thrown or does it imply a deeper
> problem?
> >
> > -Jordan
> >
> >
>

Re: NewConfigNoQuorum?

Posted by Ivan Kelly <iv...@apache.org>.
Isn't this a transient error that occurs while the cluster is
reconfiguring? Seems to me that a retry would be correct.

-Ivan

On 10 November 2014 16:56, Jordan Zimmerman <jo...@jordanzimmerman.com> wrote:
> In Alexander’s ZK meetup talk, he mentioned a new exception: NewConfigNoQuorum. How should Curator handle this? Should the reconfig operation just be retried when this is thrown or does it imply a deeper problem?
>
> -Jordan
>
>