This is an automated email from the ASF dual-hosted git repository.

randgalt pushed a commit to branch CURATOR-549-zk36-persistent-watcher-bridge
in repository https://gitbox.apache.org/repos/asf/curator.git

commit d86322b74638bffb54c3482ccd0ed7768ac1468c
Author: randgalt <[email protected]>
AuthorDate: Sat Nov 2 11:40:44 2019 -0500

    CURATOR-549
    
    Support persistent watchers in ZK 3.6+ while maintaining background 
compatability with previous versions of ZK. Adds Curator Framework DSL calls to 
ZooKeeper's addWatch() method. Subsequent PRs will add recipes. Both the older 
Framework and the async Framework now have methods to add persistent watchers.
---
 .../java/org/apache/curator/framework/imps/TestWatchesBuilder.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestWatchesBuilder.java
 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestWatchesBuilder.java
index b65e85c..073b0fa 100644
--- 
a/curator-framework/src/test/java/org/apache/curator/framework/imps/TestWatchesBuilder.java
+++ 
b/curator-framework/src/test/java/org/apache/curator/framework/imps/TestWatchesBuilder.java
@@ -622,7 +622,7 @@ public class TestWatchesBuilder extends CuratorTestBase
     @Test(groups = CuratorTestBase.zk36Group)
     public void testPersistentRecursiveWatch() throws Exception
     {
-        try (CuratorFramework client = 
CuratorFrameworkFactory.newClient(server.getConnectString(), new 
RetryOneTime(1)))
+        try ( CuratorFramework client = 
CuratorFrameworkFactory.newClient(server.getConnectString(), new 
RetryOneTime(1)) )
         {
             client.start();
             client.blockUntilConnected();
@@ -652,7 +652,7 @@ public class TestWatchesBuilder extends CuratorTestBase
             };
             return new ZooKeeper(connectString, sessionTimeout, actualWatcher);
         };
-        try (CuratorFramework client = 
CuratorFrameworkFactory.builder().connectString(server.getConnectString()).retryPolicy(new
 RetryOneTime(1)).zookeeperFactory(zookeeperFactory).build())
+        try ( CuratorFramework client = 
CuratorFrameworkFactory.builder().connectString(server.getConnectString()).retryPolicy(new
 RetryOneTime(1)).zookeeperFactory(zookeeperFactory).build() )
         {
             client.start();
             client.blockUntilConnected();

Reply via email to