Github user dolphy17 commented on the issue:
https://github.com/apache/zookeeper/pull/400
thanks @afine
Some hint on the code changes: consumer code wasn't able to delete the
node, because it concatenated the string 'element' with an integer which
resulted in something like '/app1/element1', but the actual node was
'/app1/element00000001'. This is the standard behaviour of creating sequential
nodes, ZK adds a couple of leading zeros.
To fix this, consumer now saves the name of the node together with its
number to delete it properly.
---