Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

preserve ephemeral owner and permit directory deletion after losing ephemeral children #89

Merged
merged 3 commits into from
Apr 19, 2018

Conversation

heyitsanthony
Copy link
Contributor

/cc @tsuraan

This is a partial fix. etcd will probably need an API extension to accurately cross-check against zookeeper.

Fixes #88

* check ephemeral owner is retained after updating node data
* check a directory emptied by ephemeral node loss can be deleted
Ephemeral node deletion doesn't update the CVersion, so the directory
will seem to have children when it doesn't after losing ephemeral nodes.

Note: this fails cross-checking and etcd likely needs an API extension
to get full zk compatibility.

Fixes etcd-io#88
Copy link
Contributor

@gyuho gyuho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks and sorry for delay!

@gyuho gyuho merged commit ecec9f9 into etcd-io:master Apr 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ephemeral node deleted by connection loss prevents parent node deletion
2 participants