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 803E4C83C for ; Mon, 23 Sep 2013 01:31:27 +0000 (UTC) Received: (qmail 35849 invoked by uid 500); 23 Sep 2013 01:31:27 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 35803 invoked by uid 500); 23 Sep 2013 01:31:27 -0000 Mailing-List: contact dev-help@curator.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.incubator.apache.org Delivered-To: mailing list dev@curator.incubator.apache.org Received: (qmail 35795 invoked by uid 99); 23 Sep 2013 01:31:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Sep 2013 01:31:27 +0000 X-ASF-Spam-Status: No, hits=-2002.3 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 23 Sep 2013 01:31:25 +0000 Received: (qmail 35617 invoked by uid 99); 23 Sep 2013 01:31:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Sep 2013 01:31:03 +0000 Date: Mon, 23 Sep 2013 01:31:03 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@curator.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CURATOR-56) DistributedQueue znode name grows on re-queue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CURATOR-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jordan Zimmerman resolved CURATOR-56. ------------------------------------- Resolution: Fixed Wrong node name being used when re-queueing message. Fix pushed for next release. > DistributedQueue znode name grows on re-queue > --------------------------------------------- > > Key: CURATOR-56 > URL: https://issues.apache.org/jira/browse/CURATOR-56 > Project: Apache Curator > Issue Type: Bug > Components: Recipes > Affects Versions: 2.2.0-incubating > Environment: Zookeeper server version 3.4.5 > Reporter: Adarsh Bhat > Assignee: Jordan Zimmerman > Fix For: 2.3.0 > > Attachments: CURATOR-56-testcase.patch > > > Create a DistributedQueue with a lockPath. If QueueConsumer.consumeMessage() throws an exception, the message gets re-queued. Every time this happens, the name of the queue item znode grows in length. After many iterations, node names get very large and the server stops accepting new client connections. > During a re-queue, the new znode created uses the old znode path as the base, and the SEQUENTIAL flag is set. Zookeeper appends a sequence number to the old path (which already had a sequence number), leading to a longer name during each re-queue. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira