Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

When you set on an empty path, the zookeeper will crash #62

Closed
geo-turcsanyi opened this issue Jun 10, 2015 · 5 comments
Closed

When you set on an empty path, the zookeeper will crash #62

geo-turcsanyi opened this issue Jun 10, 2015 · 5 comments

Comments

@geo-turcsanyi
Copy link

When you try setting data on an empty path, it will crash and burn your zookeeper server. And by this I mean data corruption, you need to empty your data directory and then restart it, otherwise nobody will be able to connect to it any more and will get a connection refused.

It would be nice to have an error if the path is empty, rather than letting the set happen and watching your zookeeper go down in style.

@hongchaodeng
Copy link

Hi,

Can you give more details:

  • Which version you are using
  • The code snip that caused this
  • Any suspicious logs?

Thanks!

@brian-brazil
Copy link

This is a bug in zookeeper, see https://issues.apache.org/jira/browse/ZOOKEEPER-2213

@samuel samuel closed this as completed in 3b4d6af Jun 10, 2015
@samuel
Copy link
Owner

samuel commented Jun 10, 2015

Thanks for reporting this.

While it certainly seems like the server should handle this more gracefully, I added a client side check to be safe.

@samuel
Copy link
Owner

samuel commented Jun 10, 2015

I create a ticket to have the logic in this package match the Java client: #63

@geo-turcsanyi
Copy link
Author

Thanks guys, damn you work really fast 👍

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

No branches or pull requests

4 participants