airbnb / nerve

A service registration daemon that performs health checks; companion to airbnb/synapse
MIT License
942 stars 151 forks source link

[nerve] only mkdir_p in zk_create when the path does not exists #95

Closed lap1817 closed 7 years ago

lap1817 commented 7 years ago

to: @jolynch

The current behavior is always mkdir_p the path before creating childen. This wipes out the config data that we store at the "services" node (as part of the Synapse gem patch).

This PR adds a check before doing mkdir_p. If the path already exists, it skips mkdir_p.

jolynch commented 7 years ago

Thanks @lap1817

jolynch commented 7 years ago

Released on rubygems as 0.8.1 :-)

lap1817 commented 7 years ago

@jolynch , thank you!