-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Watch directory for changes of children #633
Comments
yes, you can specify |
Hey @metaflow, thanks for pointing out to I'm basically looking for the future dataset of the directory. If I do |
@mren You want add a level option? Like for only children, you will set recursive=true and level = 1? |
Since directories don't have a value per se, would it make sense for |
I second the request to be able to watch for changes to direct descendants. If a level option makes the most sense architecturally, that would work just fine. |
I third the request to be able to watch a dir for changes to direct descendants... However it sounds like adding a 'level' option might make more sense, as it could be used for both dirs and keys... |
We have a ton of issues related to how watch should work, mainly around watching directories. I'm going to press for a roadmap doc on how we want watches to work in general and address these issues to align with that vision. |
Any new discussions internally/escalation of road map for watching for new directories (and not all the other changes in a tree)? |
@drnic No. Sorry. We are working on v3. But for v3, etcd will only support flat key-value space and support watch on prefix or a key. |
A WIP script that seems to do the trick:
|
@xiang90 what do you mean by "flat key-value space" relative to what we have now? happy to read a design doc/blog if that answers it (sorry to not know) |
@drnic https://github.com/coreos/etcd/blob/master/Documentation/rfc/v3api.md. Feedback is welcomed. |
I guess first thing that pops to mind is "HTTP API supports a subset of APIs." - what won't be in HTTP API? Sorry don't mean to borrow this Issue. |
@drnic Not sure yet. We will try best to support all. |
We are not going to implement this for v2. As already mentioned in this issue, v3 is a flag key-value space. So the children is irrelevant. |
Querying a dictionary returns a list of the children of this directory.
If I watch the directory with
wait=true
I wont receive an answer if I add a new children.As the normal query returns the children I would expect the wait to have the same behavior.
In #603 there was a similar discussion.
Are there any plans on watching for changes of the children?
The text was updated successfully, but these errors were encountered: