Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 23172 invoked from network); 8 Sep 2010 10:07:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Sep 2010 10:07:12 -0000 Received: (qmail 31031 invoked by uid 500); 8 Sep 2010 10:07:12 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 30715 invoked by uid 500); 8 Sep 2010 10:07:09 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 30691 invoked by uid 99); 8 Sep 2010 10:07:07 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 10:07:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rob.j.godfrey@gmail.com designates 209.85.216.177 as permitted sender) Received: from [209.85.216.177] (HELO mail-qy0-f177.google.com) (209.85.216.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Sep 2010 10:06:45 +0000 Received: by qyk8 with SMTP id 8so6970544qyk.15 for ; Wed, 08 Sep 2010 03:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FvnA7Z7Y246blD7YjOv2GSTk9QT30W0Qv3hWjifK0r4=; b=OJckYDmdyyfE6XJT6D+f72ZJyoFwUbRqMmX/YcuwSIxTdTFCIsBN0A96IwBonFsUGD z/2Jv+qxCD3wqYDx/2KEfRoLumQJDMQYfoxHVFOiBeHsaZ2YjimR8E2tIaZReD/HEKue pNhvVJd2kZ4Lp2IsX7skztUi7t60VuDSWAAfk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=TDf6vPViFIXEqS+AOYc4sK6XsMGHY5ReSIUhLtREN/HNf7sZf1MYQD/JmP0e+HnLsH zxCg64vUpQn7J43gz8g5NoYLscp3C9SU5JNKZ4MlFxA1TejrLE0w9P2vhoqzo5Xarjxr IZpv3iwH7hXLsNe30MFGUiRHfxNoeUzfa/IR4= MIME-Version: 1.0 Received: by 10.224.37.134 with SMTP id x6mr747582qad.172.1283940384156; Wed, 08 Sep 2010 03:06:24 -0700 (PDT) Received: by 10.229.107.202 with HTTP; Wed, 8 Sep 2010 03:06:24 -0700 (PDT) In-Reply-To: <4C872E69.7010106@redhat.com> References: <4C872E69.7010106@redhat.com> Date: Wed, 8 Sep 2010 12:06:24 +0200 Message-ID: Subject: Re: LVQ and message TTL From: Robert Godfrey To: users@qpid.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 8 September 2010 08:34, Gordon Sim wrote: > On 09/07/2010 10:19 PM, Daniel Lundin wrote: >> >> I'm playing around with LVQs, in particular in conjunction w/ttl >> semantics for expiration of keys/symbols. >> >> I noticed that if I post a message for a given LVQ key, it's not >> possible to change its TTL of a key "on the fly". >> The TTL of the initial message seems to be the one in effect - even >> though browsing the messages will show the latest (incorrect) TTL >> value. >> >> To reproduce: >> >> =A0* Send a message w/ ttl=3D5 LVQ_key=3Dbar >> =A0* Send another message w/ ttl=3D3600, LVQ_key=3Dbar >> >> The message will expire and get purged after 5s. >> >> Is this expected behavior? It seems it would be pretty useful and >> consistent that the properties of the last posted message are >> effective? > > I agree, the behaviour you describe is not what I would expect. Can you > raise a bug for that? I believe the Java Broker has the more expected (correct) behaviour. I guess a theoretically interesting question is: what should occur if the message order were reversed, i.e. you send a message with TTL 3600s, followed by a message with the same key and TTL 5s. One could plausibly argue that after 5s the value for the given key should revert to the "original" value. The Java Broker would not exhibit this behaviour, but would instead have no value for the given key after the second version of the message had expired. -- Rob --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org