Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 15228 invoked from network); 17 Sep 2010 12:18:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Sep 2010 12:18:24 -0000 Received: (qmail 82278 invoked by uid 500); 17 Sep 2010 12:18:24 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 82143 invoked by uid 500); 17 Sep 2010 12:18:21 -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 82135 invoked by uid 99); 17 Sep 2010 12:18:20 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Sep 2010 12:18:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Sep 2010 12:18:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8HCHf4G012635 for ; Fri, 17 Sep 2010 12:17:41 GMT Message-ID: <19796581.19001284725861439.JavaMail.jira@thor> Date: Fri, 17 Sep 2010 08:17:41 -0400 (EDT) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-2217) Message delivery to selector based consumers pauses if selector leaves messages on the queue. In-Reply-To: <1203572325.1240350031676.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully resolved AMQ-2217. ----------------------------- Resolution: Fixed This is a known limitation, with the Apollo (AMQ 6) project we will be able to address this archriectural constraint. In the mean time, using a large maxPageSize, named queues at the application level, or filtered name virtual queues can provide an alternative strategy. > Message delivery to selector based consumers pauses if selector leaves messages on the queue. > --------------------------------------------------------------------------------------------- > > Key: AMQ-2217 > URL: https://issues.apache.org/activemq/browse/AMQ-2217 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.1.0, 5.3.0 > Environment: Windows XP Professional 2002, Service Pack 2, Intel Pentium D 3ghz, various 1.5 and 1.6 versions of jdk > Reporter: Jar Lyons > Assignee: Gary Tully > Fix For: 5.4.1 > > Attachments: DiscriminatingConsumerLoadTest.java > > > I have written a test case which will demonstrate the difference between the following two scenarios: > 1. Producer sending dissimilar JMSType messages to a queue, with a client consuming all messages (no selector). > 2. Producer sending dissimilar JMSType messages to a queue, with a client consuming every other message (using selector). > With a large enough size of test messages (for my environment about 5k), scenario 2 will fail with delivery to the consumer halted, while scenario 1 will not. > Test Output: > waiting for consumer to pause ... consumer: 0, producer: 0 > waiting for consumer to pause ... consumer: 200, producer: 5000 > waiting for consumer to pause ... consumer: 200, producer: 5000 > waiting for consumer to pause ... consumer: 200, producer: 5000 > waiting for consumer to pause ... consumer: 200, producer: 5000 > waiting for consumer to pause ... consumer: 200, producer: 5000 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.