CURATOR-599: Configurable ZookeeperFactory by ZKClientConfig
authorliran2000 <liran2000@gmail.com>
Thu, 15 Jul 2021 10:28:50 +0000 (12:28 +0200)
committerEnrico Olivelli <eolivelli@apache.org>
Thu, 15 Jul 2021 10:28:50 +0000 (12:28 +0200)
commit414a4085c0228c5c4f960c43fb79d06d680eeea4
tree038bf748d62157c5b5d2be10ead67c9384310d14
parent4dffb5e658b28f734bc919bad8f1300c8364faed
CURATOR-599: Configurable ZookeeperFactory by ZKClientConfig

Option to use ZooKeeper client config.

This seems mandatory for using zookeeper.request.timeout for preventing
the potential race condition of hanging indefinitely, as described at
the ticket.

Author: liran2000 <liran2000@gmail.com>

Reviewers: Enrico Olivelli <eolivelli@apache.org>, Zili Chen, Cameron McKenzie

Closes #391 from liran2000/CURATOR-599
curator-client/src/main/java/org/apache/curator/utils/ConfigurableZookeeperFactory.java [new file with mode: 0644]
curator-client/src/main/java/org/apache/curator/utils/ZookeeperFactory.java
curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
curator-framework/src/test/java/org/apache/curator/framework/imps/TestFramework.java