Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B96AD6862 for ; Tue, 28 Jun 2011 22:39:50 +0000 (UTC) Received: (qmail 96234 invoked by uid 500); 28 Jun 2011 22:39:50 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 96188 invoked by uid 500); 28 Jun 2011 22:39:49 -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 96173 invoked by uid 99); 28 Jun 2011 22:39:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 22:39:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jun 2011 22:39:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8CF97413594 for ; Tue, 28 Jun 2011 22:39:28 +0000 (UTC) Date: Tue, 28 Jun 2011 22:39:28 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <274978021.338.1309300768574.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2040997994.32890.1308823727495.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3375) stomp consumer might not receive all msgs of a queue 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/AMQ-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056829#comment-13056829 ] Timothy Bish commented on AMQ-3375: ----------------------------------- I can get the test to fail using the provided unit test however the problem appears to be that the socket of the StompConnection is closed before the broker has had a chance to read all the messages from the socket buffer, if you add a sleep (6 seconds on my machine) before calling close the the test passes every time. > stomp consumer might not receive all msgs of a queue > ---------------------------------------------------- > > Key: AMQ-3375 > URL: https://issues.apache.org/jira/browse/AMQ-3375 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.5.0 > Environment: stomp consumer on virtual destination > Tested on Ubuntu 10.10 and MacOSX using java 6. > Reporter: Torsten Mielke > Labels: stomp, virtualTopic > Attachments: stomp-testcase.tgz > > > Have a testcase that connects a Java stomp consumer to a virtual destination queue and consumes a fixed amount of msgs. > During the test I noticed that the consumer does not always receive the full amount of msgs. > Instead the receive times out although JMX QueueSize property is greater than 0. However when trying to browse the queue using JMX, it returns null, despite the fact that not all msgs got dequeued yet (dispatch and dequeue counter < enqueue counter). > So far I reproduced this with a stomp producer/consumer only. The producer writes msgs to a virtual topic VirtualTopic.Foo and the consumer takes msgs off the Consumer.A.VirtualTopic.Foo queue. Using JMX I noticed all msgs got moved from the virtual topic to the queue (reflected by JMX enqueue counter) but not all msgs got consumed. > So it seems the broker lost some msgs on the way. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira