On Fri, Nov 4, 2011 at 9:54 AM, Mark Libucha <mlibu...@gmail.com> wrote:
> > Also, the javadoc says the synchronous create(): "Returns: the actual path > of the created node". It's not clear exactly what that means, and how it > might be different from the path argument that gets passed to it? Does this > have to do with whether or a not a chroot suffix was specified in > constructor's connectString? > It mostly has to do with sequential files. They get a name that you didn't pass in. > Seems to me like the Stat object should contain the chroot-relative path > and the "actual path" -- if these are indeed different -- and create() > should return a Stat object. But not knowing the ZK internals, maybe that > would be a resource issue? > API changes are very painful, especially against what has to be one of the top 5 methods in the entire package. It is conceivable to add a create method that accepts a reference to a stat object.