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 9B00018F2D for ; Wed, 3 Jun 2015 20:20:07 +0000 (UTC) Received: (qmail 53854 invoked by uid 500); 3 Jun 2015 20:20:06 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 53809 invoked by uid 500); 3 Jun 2015 20:20:06 -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 53798 invoked by uid 500); 3 Jun 2015 20:20:06 -0000 Delivered-To: apmail-hadoop-zookeeper-user@hadoop.apache.org Received: (qmail 53795 invoked by uid 99); 3 Jun 2015 20:20:06 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2015 20:20:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1C0BD1802E8 for ; Wed, 3 Jun 2015 20:20:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6B9iKrFbj3lC for ; Wed, 3 Jun 2015 20:19:55 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 0F0DA428FF for ; Wed, 3 Jun 2015 20:19:55 +0000 (UTC) Received: by oiww2 with SMTP id w2so16360887oiw.0 for ; Wed, 03 Jun 2015 13:18:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=PylyR2sSFkfPeBAW2DvH1FsRpu0nLvVwYEQomrHcw6k=; b=Kn2sWOj0u9bfeI98uOWCJSR5pMOsZbHxg9aaXrUSU9lfMKS0zyCi3tr61iVmzWSBC1 IC3Kcs25jiFG6Hq0g7lOmu5h74mloKndb8SUN1ypEbEUHKh80U1ridJ+tqz4eTRHvsdt qSC3GRSfARQO6H/dbu9jLOBlShVcDwnin+ZUxl2E+IxPS0HMKazVjScyi7RfukLr82C3 CrZpg5WpQ94lQak6lMZEBRt9cd7ITEL3VGBpjmggEvjK+BoOtHl1Q45AFN5cQSeixM4f 5vl7IuHPzaF4O9h9tF80HhCsNX7+gtKQTVg3wcOhyk4xFQ1ExnErSimLlh5Y4KINftp5 h5Jg== X-Gm-Message-State: ALoCoQl89uQh93SAf50kGDZu/3nhJ4yyZ82SieXqxY4VguyPORz0K7qBySVXq8i4zbSR+if0B6L1 MIME-Version: 1.0 X-Received: by 10.202.51.66 with SMTP id z63mr1050699oiz.49.1433362704586; Wed, 03 Jun 2015 13:18:24 -0700 (PDT) Received: by 10.202.172.73 with HTTP; Wed, 3 Jun 2015 13:18:24 -0700 (PDT) X-Originating-IP: [8.25.197.26] In-Reply-To: <1433360712306-7581165.post@n2.nabble.com> References: <1433357093089-7581162.post@n2.nabble.com> <1433360712306-7581165.post@n2.nabble.com> Date: Wed, 3 Jun 2015 13:18:24 -0700 Message-ID: Subject: Re: Getting error "unable to create sequence znode" From: =?UTF-8?B?UmHDumwgR3V0acOpcnJleiBTZWdhbMOpcw==?= To: "user@zookeeper.apache.org" Cc: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a113ce1b4d788940517a2c26b --001a113ce1b4d788940517a2c26b Content-Type: text/plain; charset=UTF-8 On 3 June 2015 at 12:45, kvanhorn wrote: > Hi Raul, > > Thanks for the quick reply. > > We're using the Perl (v 5.8.8) wrapper of the C library: > > my $lock_tmpl = $lock_prefix . "/" . $lock_name . "-"; > my $lock_path = $zkh->create($lock_tmpl, $self->{data}, > flags => (ZOO_EPHEMERAL | ZOO_SEQUENCE), > acl => ZOO_OPEN_ACL_UNSAFE) or > die "unable to create sequence znode $lock_tmpl: " . $zkh->get_error . > "\n"; > > My question was poorly phrased--I should have asked what would cause such > an > error? > > The "-9" is the result of the "get_error()" call in the Lock.pm code > snippet > above, but I have not been able to find where those numeric error values > are > located again. I usually use the "str_error()" call instead, but this is > in > the Perl library, so... > So the Perl lib is a wrapper for the C lib, so that comes from: src/c/include/zookeeper.h: ZINVALIDSTATE = -9, /*!< Invliad zhandle state */ (see it here: https://github.com/apache/zookeeper/blob/trunk/src/c/include/zookeeper.h#L95 ) It can happen when your session expired, for instance. -rgs --001a113ce1b4d788940517a2c26b--