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 2050297FA for ; Wed, 8 Feb 2012 15:30:22 +0000 (UTC) Received: (qmail 55946 invoked by uid 500); 8 Feb 2012 15:30:22 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 55805 invoked by uid 500); 8 Feb 2012 15:30: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 55791 invoked by uid 99); 8 Feb 2012 15:30:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 15:30:20 +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; Wed, 08 Feb 2012 15:30:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8F6991AABC8 for ; Wed, 8 Feb 2012 15:29:59 +0000 (UTC) Date: Wed, 8 Feb 2012 15:29:59 +0000 (UTC) From: "Timothy Bish (Resolved) (JIRA)" To: dev@activemq.apache.org Message-ID: <895754103.15114.1328714999588.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1815686975.24231.1312993527349.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMQ-3445) jdbcPersistenceAdapter will lose existing queues after a broker restart 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-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQ-3445. ------------------------------- Resolution: Fixed Added a test case for you, works fine using 5.6-SNAPSHOT. > jdbcPersistenceAdapter will lose existing queues after a broker restart > ----------------------------------------------------------------------- > > Key: AMQ-3445 > URL: https://issues.apache.org/jira/browse/AMQ-3445 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.4.2, 5.5.0 > Reporter: Rasitha Wijesinghe > > When using jdbcPersistenceAdapter, if you restart the broker queues do not show up until they are manually created or a consumer re-connects. This is especially a problem for Virtual Topic consumers - for Virtual Topic consumers once the queue is created (and thereby subscribing to the virtual topic), they should get all messages published to the topic until consumer explicitly remove subscription by deleting the queue. With KahaDB this works correctly but not with jdbcPersistenceAdapter. Tried both 5.4.2 and 5.5 and both have the same issue. > To reproduce: > 1. Setup broker using jdbcPersistenceAdapter > 2. Go to web console and create a queue: Consumer.MyApp.VirtualTopic.FOO > 3. Go to topics page and create a topic: VirtualTopic.FOO > 4. Send a message with Persistent Delivery to the topic > 5. Verify queue has the message > 6. Restart the broker > 7. BUG: queue does not show up > 8. Go to topics page and repeat steps 3 & 4 > 9. repeat step 2 > 10. BUG: only the first message shows up in the queue. > Do the same test on KahaDB and queue shows up in step 7 (and because of that) you get both messages in step 10. > -- 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