[
https://issues.apache.org/jira/browse/CURATOR-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15768773#comment-15768773
]
xsank mar edited comment on CURATOR-366 at 12/22/16 2:13 AM:
-------------------------------------------------------------
{code}
server = new TestingServer();
server.start();
{code}
then use the server.getConnectString() as the zkurl
{code}
client =
CuratorFrameworkFactory.builder().connectString(url).namespace(ROOT_PATH)
.retryPolicy(new RetryNTimes(DEFAULT_CONNECTION_RETRY_COUNT,
DEFAULT_CONNECTION_RETRY_TIMEOUT))
.connectionTimeoutMs(DEFAULT_CONNECTION_TIMEOUT).build();
client.start();
{code}
then start the client, the status was START, then create a node that not exist.
{code}
this.client.create().creatingParentsIfNeeded().withMode(CreateMode.EPHEMERAL).forPath(path);
{code}
now just hang there and until throw exception.
was (Author: xsank):
{code}
server = new TestingServer();
server.start();
{code}
then use the server.getConnectString() as the zkurl
{code}
this.client =
CuratorFrameworkFactory.builder().connectString(url).namespace(ROOT_PATH)
.retryPolicy(new RetryNTimes(DEFAULT_CONNECTION_RETRY_COUNT,
DEFAULT_CONNECTION_RETRY_TIMEOUT))
.connectionTimeoutMs(DEFAULT_CONNECTION_TIMEOUT).build();
this.client.start();
{code}
then start the client, the status was START, then create a node that not exist.
{code}
this.client.create().creatingParentsIfNeeded().withMode(CreateMode.EPHEMERAL).forPath(path);
{code}
now just hang there and until throw exception.
> curator hangup and throw a CuratorConnectionLossException after timeout
> -----------------------------------------------------------------------
>
> Key: CURATOR-366
> URL: https://issues.apache.org/jira/browse/CURATOR-366
> Project: Apache Curator
> Issue Type: Bug
> Components: Apache, Framework
> Environment: windows & linux
> jdk 1.7
> Reporter: xsank mar
> Priority: Trivial
>
> here is the traceback:
> {code}
> org.apache.curator.CuratorConnectionLossException: KeeperErrorCode =
> ConnectionLoss
> at
> org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:197)
> at
> org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:88)
> at
> org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:116)
> at
> org.apache.curator.framework.imps.CuratorFrameworkImpl.getZooKeeper(CuratorFrameworkImpl.java:489)
> at
> org.apache.curator.framework.imps.DeleteBuilderImpl$5.call(DeleteBuilderImpl.java:243)
> at
> org.apache.curator.framework.imps.DeleteBuilderImpl$5.call(DeleteBuilderImpl.java:237)
> at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:108)
> at
> org.apache.curator.framework.imps.DeleteBuilderImpl.pathInForeground(DeleteBuilderImpl.java:234)
> at
> org.apache.curator.framework.imps.DeleteBuilderImpl.forPath(DeleteBuilderImpl.java:218)
> at
> org.apache.curator.framework.imps.DeleteBuilderImpl.forPath(DeleteBuilderImpl.java:42)
> {code}
> i have tried the curator version of 2.6.0, 2.7.1, 2.9.1, 2.10.0, the version
> of zookeeper server is 3.3.5
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)