Github user Randgalt commented on a diff in the pull request:
https://github.com/apache/curator/pull/131#discussion_r52199052
--- Diff:
curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
---
@@ -240,11 +238,7 @@ public void createContainers(String path) throws
Exception
@Override
public void clearWatcherReferences(Watcher watcher)
{
- NamespaceWatcher namespaceWatcher =
namespaceWatcherMap.remove(watcher);
- if ( namespaceWatcher != null )
- {
- namespaceWatcher.close();
- }
--- End diff --
Recipes have to do a tiny bit of work. They need to get a specially wrapped
instance by calling CuratorFramework.newWatcherRemoveCuratorFramework() and
then calling removeWatchers() when done.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---