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 A6E56D6B4 for ; Fri, 3 Aug 2012 23:57:02 +0000 (UTC) Received: (qmail 45728 invoked by uid 500); 3 Aug 2012 23:57:02 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 45683 invoked by uid 500); 3 Aug 2012 23:57:02 -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 45664 invoked by uid 99); 3 Aug 2012 23:57:02 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2012 23:57:02 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 3B47F14052C for ; Fri, 3 Aug 2012 23:57:02 +0000 (UTC) Date: Fri, 3 Aug 2012 23:57:02 +0000 (UTC) From: "Andreas Mattes (JIRA)" To: dev@activemq.apache.org Message-ID: <1578472209.12643.1344038222244.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (AMQ-3961) Durable subscriber only receives part of the persisted messages on re-connect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Andreas Mattes created AMQ-3961: ----------------------------------- Summary: Durable subscriber only receives part of the persisted messages on re-connect Key: AMQ-3961 URL: https://issues.apache.org/jira/browse/AMQ-3961 Project: ActiveMQ Issue Type: Bug Components: Connector Affects Versions: 5.6.0 Environment: Default configuraton of ActiveMQ under Linux or Windows Reporter: Andreas Mattes A durable subscriber is connected to ActiveMQ using the ConnectionConsumer protocol, transacted sessions, and at most 1 message per session. While the subscriber is disconnected, the publisher publishes e.g. 10 messages. When the subscriber re-connects, it only receives 2 messages of those. If it repeatedly disconnects and re-connects, it receives 2 messages each time until all messages are received. Further investigation reveals that the problem lies in class org.apache.activemq.broker.region.PrefetchSubscription which does not re-check for further pending messages to be dispatched when committed message are removed from the list of dispatched but not yet acknowledged messages. -- 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