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

Removing a child after parent's directory has been removed #51

Closed
shurup opened this issue May 23, 2017 · 1 comment
Closed

Removing a child after parent's directory has been removed #51

shurup opened this issue May 23, 2017 · 1 comment
Labels
Milestone

Comments

@shurup
Copy link

shurup commented May 23, 2017

ZNode data in etcd is left while zk considers there's no more such ZNode. Does it work as intended?

$ ./go/bin/zkctl create /abc test
2017/05/23 22:09:02 Connected to 127.0.0.1:2181
2017/05/23 22:09:02 Authenticated: id=7587822333160445519, timeout=10001
$ ./go/bin/zkctl create /abc/xyz test
2017/05/23 22:09:27 Connected to 127.0.0.1:2181
2017/05/23 22:09:27 Authenticated: id=7587822333160445526, timeout=1000
$ ./go/bin/zkctl delete /abc
2017/05/23 22:09:42 Connected to 127.0.0.1:2181
2017/05/23 22:09:42 Authenticated: id=7587822333160445532, timeout=1000
$ ./go/bin/zkctl delete /abc/xyz
2017/05/23 22:09:43 Connected to 127.0.0.1:2181
2017/05/23 22:09:44 Authenticated: id=7587822333160445537, timeout=1000
zk: node does not exist
$ ./go/bin/etcdctl get --prefix /zk
/zk//abc/xyz
test
/zk//abc/xyz

/zk//

/zk//abc/xyz

/zk//abc/xyz
...
@heyitsanthony
Copy link
Contributor

zk won't delete /abc because it has children, but zetcd isn't doing that check; will fix

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

No branches or pull requests

2 participants