Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 93185 invoked from network); 13 Aug 2007 15:35:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 15:35:43 -0000 Received: (qmail 75231 invoked by uid 500); 13 Aug 2007 15:35:41 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 75205 invoked by uid 500); 13 Aug 2007 15:35:41 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 75196 invoked by uid 99); 13 Aug 2007 15:35:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 08:35:41 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 15:35:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 62C9A7141EB for ; Mon, 13 Aug 2007 08:35:22 -0700 (PDT) Message-ID: <18539794.1187019322399.JavaMail.jira@brutus> Date: Mon, 13 Aug 2007 08:35:22 -0700 (PDT) From: "Rainer Klute (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-1095) Invalid messages selected from durable topic MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39913 ] Rainer Klute commented on AMQ-1095: ----------------------------------- It seems to me that the bug is in the Kaha persistence manager namely in the method org.apache.activemq.store.kahadaptor.KahaTopicMessageStore.addMessage(ConnectionContext context, Message message). Here the message is added to the message containers of *all* topic subcribers without checking their respective selectors. Am I on the right track here or not? > Invalid messages selected from durable topic > -------------------------------------------- > > Key: AMQ-1095 > URL: https://issues.apache.org/activemq/browse/AMQ-1095 > Project: ActiveMQ > Issue Type: Bug > Components: Selector > Affects Versions: 5.0.0 > Reporter: Albert Strasheim > Assignee: Rob Davies > Attachments: ActiveMQ_Test.tar.bz2, DurableTopicSelector.java > > > We think we've found an issue with durable topic subscriptions and message selectors. > The attached application sends messages with an int property i with values 0..19 to a topic. We also have a durable subscription to the topic, selecting messages for which i%2=0. After sending the messages, the connection is started, allowing the consumer to receive the messages we've published that match the selection criterion. The second and every subsequent time we run the application, we see the following: > message.i = 19 > message.i = 0 > message.i = 2 > message.i = 4 > message.i = 6 > message.i = 8 > message.i = 10 > message.i = 12 > message.i = 14 > message.i = 16 > message.i = 18 > message.i = 19 does not match the message selector criterion but it reaches our message handler anyway. > Tested with ActiveMQ from trunk, revision 486090. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.