Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0230D17ACC for ; Sat, 17 Jan 2015 18:07:20 +0000 (UTC) Received: (qmail 81720 invoked by uid 500); 17 Jan 2015 18:07:21 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 81672 invoked by uid 500); 17 Jan 2015 18:07:21 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 81660 invoked by uid 99); 17 Jan 2015 18:07:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2015 18:07:20 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dapurv5@gmail.com designates 209.85.223.179 as permitted sender) Received: from [209.85.223.179] (HELO mail-ie0-f179.google.com) (209.85.223.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jan 2015 18:06:54 +0000 Received: by mail-ie0-f179.google.com with SMTP id rp18so25482111iec.10 for ; Sat, 17 Jan 2015 10:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=koZqn4c8nmalrIV6SSt7rdzPWbrdJ7QWggA5B3/pBMU=; b=VKjw0HI1fVOz+7KVfT1I1DDiyILZOx2OeSZpNajiP6FbFKtMj9L/6mPm0Bbnsfvx0z lpNASeqpjxJe5JXQ1krQFnzz0M7HCobNfF/AcbGcB7K696FZ9vwV+o76TZ6pgZeftWQi EuFZ6ACuFiwXOeyjJv4hE5xS29fHqmCucFWDEylFQGfEA4YoJVleIfl58NGcaBX7xdeH nj9QgaFShKIdJApZHY9ZoeagZjD4ZleLtzmNtFQMYycikRdqv+uqrec4G58irCxd0vYJ mIoxkI420tUnr3DoCkx7xYwRQF1mvZvnSdOFL5JooVCTy/w1YvcNbJ8bCX2tGDeI5S2x dOtw== X-Received: by 10.107.3.37 with SMTP id 37mr22987180iod.82.1421517967992; Sat, 17 Jan 2015 10:06:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.101.132 with HTTP; Sat, 17 Jan 2015 10:05:47 -0800 (PST) In-Reply-To: References: From: Apurv Verma Date: Sat, 17 Jan 2015 23:35:47 +0530 Message-ID: Subject: Re: Getting null as list of children in processResult callback To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a113fb89486316e050cdcf19a X-Virus-Checked: Checked by ClamAV on apache.org --001a113fb89486316e050cdcf19a Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > > > > Hey all, > > The *ChildrenCallback*#*processResult(int rc, String path, Object > > ctx, List 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 > > --001a113fb89486316e050cdcf19a--