curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randgalt <>
Subject [GitHub] curator pull request: Major re-work of Watcher wrappers
Date Mon, 08 Feb 2016 17:32:39 GMT
Github user Randgalt commented on a diff in the pull request:
    --- Diff: curator-framework/src/main/java/org/apache/curator/framework/imps/
    @@ -240,11 +238,7 @@ public void createContainers(String path) throws Exception
         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 or file a JIRA ticket
with INFRA.

View raw message