zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apurv Verma <dapu...@gmail.com>
Subject Re: Getting null as list of children in processResult callback
Date Sat, 17 Jan 2015 18:05:47 GMT
Thanks Flavio, this was sufficient hint for me. I discovered that when
there is a connection loss, a callback to processResults is invoked with
the value of rc = Code.ConnectionLoss.




--
Regards,
Apurv Verma



On Sat, Jan 17, 2015 at 9:30 PM, Flavio Junqueira <
fpjunqueira@yahoo.com.invalid> wrote:

> What's the rc when children is null?
>
> -Flavio
>
> > On 17 Jan 2015, at 11:22, Apurv Verma <dapurv5@gmail.com> wrote:
> >
> > Hey all,
> > The  *ChildrenCallback*#*processResult(int rc, String path, Object
> > ctx, List<String> children)* method is a callback to the
> > ZooKeeper#getChildren method as I understand. I am seeing a null value
> > being passed in children sometimes.
> >
> > Is this allowed, if yes, when do we expect to see a null value?
> >
> > --
> > Regards,
> > Apurv Verma
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message