-
Notifications
You must be signed in to change notification settings - Fork 50
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
kvs-watch: Add flag to only respond to changes to a key #1847
Comments
I agree that would be useful to have as a separate flag. |
FLUX_KVS_WATCH_UNIQ? |
Actually, this sounds pretty good. B/c it sort of maps to the |
Just thinking aloud again with a focus on typical use cases --should |
I thought about that last night. I figure the majority of the time, duplicate values won't be written to the same key, so we probably don't want to introduce a |
Yeah, I don't know the right answer, but just wanted to bring it up. |
I don't have a strong opinion on that one, though I would tend to think the extra overhead is not justified when producer and consumer of KVS data are coordinated (like event logs for example). |
Support new flag that will only send watch responses if the key value differs from the prior response. Fixes flux-framework#1847
While working on #1653, I realized that the new kvs-watch responds whenever a key has been written to. This includes when the key has the same value written to it. For example:
Would respond with 4 results to a watcher. In a number of circumstances, I doubt this is what is desired.
Once #1653 is completed, it would be trivial to add a flag to say "only respond if the key value has changed",
The text was updated successfully, but these errors were encountered: