Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
3.6.3, 3.7.0
Description
AddWatchMode.PERSISTENT was divided as data and child watch in server side. When remove WatcherType.Children, child part of AddWatchMode.PERSISTENT is removed but not its data part. This could introduce trick usage of persistent data watch while there is no official api for this. It is better forbid this by dedicate WatcherType.Children to standard child watch only.
I commits a modified RemoveWatchesTest.testRemoveAllChildWatchesOnAPath in my local repo to reproduce this.
I think it is better to support removeWatches for two persistent watchers too. But it might be a separate issue.
Attachments
Issue Links
- is related to
-
ZOOKEEPER-4472 Support persistent watchers removing individually
- Closed
- links to