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 7FDD71036A for ; Mon, 9 Sep 2013 16:03:56 +0000 (UTC) Received: (qmail 61416 invoked by uid 500); 9 Sep 2013 16:03:56 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 61336 invoked by uid 500); 9 Sep 2013 16:03:53 -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 61320 invoked by uid 99); 9 Sep 2013 16:03:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 16:03:51 +0000 Date: Mon, 9 Sep 2013 16:03:51 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-4669) StoreDurableSubscriberCursor cursor is instantiated twice if PendingDurableSubscriberPolicy is explicitly configured, then results in missing TopicStorePrefetch instance in it. 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-4669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13761955#comment-13761955 ] Timothy Bish commented on AMQ-4669: ----------------------------------- Have you tested a later release. In the 5.9-SNAPSHOT code there is a test case 'ConcurrentProducerDurableConsumerTest' which uses this configuration and the consumer receives its messages without issue. > StoreDurableSubscriberCursor cursor is instantiated twice if PendingDurableSubscriberPolicy is explicitly configured, then results in missing TopicStorePrefetch instance in it. > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-4669 > URL: https://issues.apache.org/jira/browse/AMQ-4669 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.7.0 > Reporter: Jaewoong Choi > > If used, PendingDurableSubscriberPolicy is used twice for StoreDurableSubscriberCursor instantiation, meaning StoreDurableSubscriberCursor is instantiated twice: firstly at TopicRegion#createSubscription and secondly at DurableTopicSubscription#activate invocation. > The critical side effect by the above is that, TopicStorePrefetch (internal PendingMessageCursor for persistent message store) is created/assigned only to the 1st store cursor, and then this 1st store cursor is replaced by the 2nd one. And this 2nd cursor is used at runtime but without having TopicStorePrefetch cursor, so subscriptions cannot consume any published message. > Simply, with the following code, topic durable subscribers never consume any published message. > {code} > PolicyEntry policyEntry = new PolicyEntry(); > policyEntry.setPendingDurableSubscriberPolicy(new StorePendingDurableSubscriberMessageStoragePolicy()); > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira