Timing? Perhaps by the time you get around to doing the get the child has been removed, but one/more exist at the time you do the delete. Notice the cversion is 38 in this case (so there were children at one point).
Patrick On Fri, Mar 9, 2012 at 11:40 AM, Shelley, Ryan <[email protected]> wrote: > Has anyone had an issue attempting to delete an empty node (zk 3.4.3): > > [zk: localhost:2181(CONNECTED) 252] ls /streams/foo > [] > [zk: localhost:2181(CONNECTED) 253] delete /streams/foo > Node not empty: /streams/foo > [zk: localhost:2181(CONNECTED) 254] get /streams/foo > > cZxid = 0x245f > ctime = Thu Mar 08 18:36:12 PST 2012 > mZxid = 0x245f > mtime = Thu Mar 08 18:36:12 PST 2012 > pZxid = 0x27c0 > cversion = 38 > dataVersion = 0 > aclVersion = 0 > ephemeralOwner = 0x0 > dataLength = 0 > numChildren = 0 > > This doesn't seem to happen consistently, but more often when under load.
