Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir_p in jruby fails if more than one part of the path is nonexistent #45

Open
ghallberg opened this issue Aug 28, 2012 · 3 comments
Open

Comments

@ghallberg
Copy link

When running zk.mkdir_p("/foo/bar") in an empty zookeeper tree an NoNode-exception is thrown, but it's not caught in the handler, so no recursion is performed. It is possible to use it to create a single new level (mkdir_p("/foo")), mimicing the behavior of create.

This is on jruby 1.7.0-preview1 and 2.

@slyphon
Copy link
Contributor

slyphon commented Aug 28, 2012

This is tested in the unit tests, though I haven't run it with 1.7.0. Can
you try with 1.6.7? I don't think 1.7 is stable yet

On Tuesday, August 28, 2012, ghallberg wrote:

When running zk.mkdir_p("/foo/bar") in an empty zookeeper tree an
NoNode-exception is thrown, but it's not caught in the handler, so no
recursion is performed. It is possible to use it to create a single new
level (mkdir_p("/foo")), mimicing the behavior of create.

This is on jruby 1.7.0-preview1 and 2.


Reply to this email directly or view it on GitHubhttps://github.com//issues/45.

(sent from my mobile device)

@ghallberg
Copy link
Author

Yes, it works fine in 1.6.7.2. Up to you if you want to fix it immediately or wait until 1.7 is final I guess. Thanks

@dallasmarlow
Copy link

this works fine in the jruby 1.7.1 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants