Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB2CD18C8C for ; Fri, 2 Oct 2015 22:28:27 +0000 (UTC) Received: (qmail 13825 invoked by uid 500); 2 Oct 2015 22:28:27 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 13782 invoked by uid 500); 2 Oct 2015 22:28:27 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 13768 invoked by uid 99); 2 Oct 2015 22:28:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2015 22:28:27 +0000 Date: Fri, 2 Oct 2015 22:28:27 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CURATOR-268) Curator client doesn't behave well when it loses connection: CRUD operation fail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CURATOR-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941890#comment-14941890 ] Jordan Zimmerman commented on CURATOR-268: ------------------------------------------ https://github.com/apache/curator/pull/111 I checked this against your test by adding delete.quietly() and create.orSetData() and the test works. > Curator client doesn't behave well when it loses connection: CRUD operation fail > -------------------------------------------------------------------------------- > > Key: CURATOR-268 > URL: https://issues.apache.org/jira/browse/CURATOR-268 > Project: Apache Curator > Issue Type: Bug > Components: Framework > Affects Versions: 2.7.1, 2.9.0 > Reporter: Benjamin Jaton > Assignee: Jordan Zimmerman > Priority: Critical > Fix For: 3.0.0 > > Attachments: TestCuratorSaveConnLoss.java > > > I am doing a basic stress test : > - a TestingServer that keeps restarting in one thread > - a Curator client that keeps creating/deleting a node in another > After a few seconds, ether the create or the delete fail: > {code}Thu Oct 01 15:35:10 PDT 2015 - Node /test has successfully been removed. > Thu Oct 01 15:35:10 PDT 2015 - Recreating /test > Thu Oct 01 15:35:10 PDT 2015 - Restarting server... > Thu Oct 01 15:35:14 PDT 2015 - Restarting server... > Thu Oct 01 15:35:15 PDT 2015 - ERROR: node should be removed. > Thu Oct 01 15:35:15 PDT 2015 - Data of node is: test > Node has been mysteriously created... > org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /test > at org.apache.zookeeper.KeeperException.create(KeeperException.java:123) > at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) > at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1209) > at org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:720) > at org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:703) > at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107) > at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:700) > at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:477) > at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:467) > at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:44) > at TestCuratorSaveConnLoss$3.run(TestCuratorSaveConnLoss.java:87){code} > The create shouldn't fail, we're within 5 seconds of the create and the connection timeout is 10 secs. > This is surprising as this basic scenario is - AFAIK - the reason Curator exists in the first place. -- This message was sent by Atlassian JIRA (v6.3.4#6332)