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 7850494E3 for ; Tue, 24 Apr 2012 18:31:56 +0000 (UTC) Received: (qmail 50204 invoked by uid 500); 24 Apr 2012 18:31:56 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 49885 invoked by uid 500); 24 Apr 2012 18:31:55 -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 49757 invoked by uid 99); 24 Apr 2012 18:31:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 18:31:55 +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, 24 Apr 2012 18:31:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0E14B40DFDD for ; Tue, 24 Apr 2012 18:31:34 +0000 (UTC) Date: Tue, 24 Apr 2012 18:31:34 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <1133184804.10799.1335292294059.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1803764408.3852.1335163670546.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3816) Broker does not retain messages for a STOMP durable consumer if the broker restarts while the consumer was running 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/AMQ-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13260799#comment-13260799 ] Timothy Bish commented on AMQ-3816: ----------------------------------- What could be happening here is that your consumer is using an ack mode of auto, and the broker has sent the consumer all the pending messages because its prefetch limit has not been set. You should try setting the prefetch limit to 1, or using client ack. > Broker does not retain messages for a STOMP durable consumer if the broker restarts while the consumer was running > ------------------------------------------------------------------------------------------------------------------ > > Key: AMQ-3816 > URL: https://issues.apache.org/jira/browse/AMQ-3816 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, stomp > Affects Versions: 5.5.1 > Environment: Perl STOMP clients on UNIX OS. > Reporter: Buchi Reddy B > > We have noticed that the broker does not deliver some messages to a durable consumer in the following scenario. > 1/ Start ActiveMQ broker, Perl STOMP producer on topics with persistence and Perl STOMP consumer with durable topics. > 2/ Kill the broker while the consumer and producer are running. > 3/ Kill the consumer. We have kept the producer running all these while. > 4/ Restart the broker and producer will connect to it and continue to send the messages. > 5/ Restart the consumer. We have noticed that the consumer was missing big chunk of messages sent by the producer when the consumer was down. But, we expect the consumer to receive these messages since it's a durable consumer and did not unsubscribe from these topics. > I have enabled TRACE level logging for the broker and checked that the broker is recovering the durable subscription information from the kaha db logs when it restarts and marks the durable consumer as inactive durable subscription. However, broker does not seem to retain the messages for this durable consumer until the consumer comes up again. > Is this expected? Does not broker guarantee message redelivery for durable consumers when the broker itself restarts? > Please let me know if we have any configurations on the broker/client side to avoid these kind of issues. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira