-
Notifications
You must be signed in to change notification settings - Fork 58
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
rm_rf throws ZK::Exception::NotEmpty #88
Comments
if you have
rm_rf will remove One thing to try may be to close your connection at the end of the test, and do cleanup with a fresh connection to ensure any registered watchers on the original connection are no longer active. (I'm pretty sure that's what the zk unittests do, fwiw). |
Thanks! This makes sense. I'll make sure I'm always closing ZK connection On Sat, Jul 18, 2015 at 6:58 AM, Jonathan Simms [email protected]
|
There seems to be a race condition somewhere in
rm_rf
implementation.I have a rspec tests with
after(:each)
block callingzk.rm_rf('/LOCAL')
which basically wipes all data in ZK before next test for me (I'm not creating any other nodes at root level). This however results in a random flakiness with exceptions which doesn't quite make sense to me:Is it a sign of a bug in my code or rather race condition in ZK's
rm_rf
? Not sure if it matters but I'm using zk-server for testing.@slyphon any ideas?
The text was updated successfully, but these errors were encountered: