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 963B110539 for ; Thu, 11 Apr 2013 17:59:16 +0000 (UTC) Received: (qmail 13379 invoked by uid 500); 11 Apr 2013 17:59:16 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 13304 invoked by uid 500); 11 Apr 2013 17:59:16 -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 13295 invoked by uid 99); 11 Apr 2013 17:59:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 17:59:16 +0000 Date: Thu, 11 Apr 2013 17:59:16 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (AMQ-4212) Broker may be unable to recover durable topic subscription from the kahadb journal 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-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish reassigned AMQ-4212: --------------------------------- Assignee: Timothy Bish > Broker may be unable to recover durable topic subscription from the kahadb journal > ---------------------------------------------------------------------------------- > > Key: AMQ-4212 > URL: https://issues.apache.org/jira/browse/AMQ-4212 > Project: ActiveMQ > Issue Type: Bug > Components: Message Store > Affects Versions: 5.7.0 > Environment: kahadb and durable topic subscribers > Reporter: Torsten Mielke > Assignee: Timothy Bish > Attachments: AMQ4212Test.java, AMQ4212Test.java, AMQ4212Test.java > > > KahaDB is supposed to recover its index from the journal *completely*. > Such recovery can be enforced by stopping the broker, deleting the db.data index file and restarting the broker. > The recovery process may however not be able to recover inactive durable topic subscriptions. > This is because the kahadb cleanup task will not consider any active subscription entries in the journal files when marking journal files for deletion. > E.g. If a durable sub info was written to e.g. the journal file db-1.log but kahadb has already rolled over to writing to db-2.log, the cleanup task may delete db1.log (in case all msgs in db1.log got acked). The durable sub however is still alive. > When stopping the broker this durable sub info is still present in the index file and will be restored at broker restart. > If however the index file gets deleted in order to enforce a recovery of the index from the journal, then the broker has lost the information about this durable sub. > The broker is therefore not able to recover its state fully from the journal files. > If the durable subscriber remains inactive (i.e. does not reconnect to broker immediately after broker restart), it may miss messages as the broker has no knowledge of this durable sub. -- 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