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