Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 13060 invoked from network); 7 Jan 2011 15:02:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2011 15:02:08 -0000 Received: (qmail 32097 invoked by uid 500); 7 Jan 2011 15:02:07 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 31888 invoked by uid 500); 7 Jan 2011 15:02:07 -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 31870 invoked by uid 99); 7 Jan 2011 15:02:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 15:02:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 15:02:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p07F1j0H015313 for ; Fri, 7 Jan 2011 15:01:45 GMT Message-ID: <4823479.212741294412505889.JavaMail.jira@thor> Date: Fri, 7 Jan 2011 10:01:45 -0500 (EST) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-3122) Recovery after out of disk space (when space freed up) needs manual intervention In-Reply-To: <17389351.211781294409385345.JavaMail.jira@thor> 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-3122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978802#action_12978802 ] Gary Tully commented on AMQ-3122: --------------------------------- There is also an exception variant of the form:{code}java.io.EOFException at java.io.RandomAccessFile.readInt(RandomAccessFile.java:725) at org.apache.kahadb.journal.DataFileAccessor.readRecord(DataFileAccessor.java:83) at org.apache.kahadb.journal.Journal.read(Journal.java:601) at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:786) at org.apache.activemq.store.kahadb.MessageDatabase.recoverProducerAudit(MessageDatabase.java:484) at org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:438) at org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:315) at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:357) at org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:222) at org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:180) at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53) at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.start(KahaDBPersistenceAdapter.java:186) at org.apache.activemq.broker.BrokerService.start(BrokerService.java:485){code} > Recovery after out of disk space (when space freed up) needs manual intervention > -------------------------------------------------------------------------------- > > Key: AMQ-3122 > URL: https://issues.apache.org/jira/browse/AMQ-3122 > Project: ActiveMQ > Issue Type: Bug > Components: Message Store > Affects Versions: 5.4.1, 5.4.2 > Reporter: Gary Tully > Assignee: Gary Tully > Fix For: 5.5.0 > > > When broker runs out of disk space, the journal excepts and the send fails with an exception as expected. The default IO exception handler ignores the exception. (aside: it is possible to install an exception handler that shuts down the broker: http://activemq.apache.org/configurable-ioexception-handling.html) > On restart, the last journal file that failed a write is left with 0 size, this impedes restart recovery as it cannot be parsed. > {code}ERROR | Failed to start ActiveMQ JMS Message Broker. Reason: java.io.EOFException > java.io.EOFException > at java.io.RandomAccessFile.readInt(RandomAccessFile.java:725) > at org.apache.kahadb.journal.DataFileAccessor.readLocationDetails(DataFileAccessor.java:115) > at org.apache.kahadb.journal.Journal.getNextLocation(Journal.java:498) > at org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:395) > at org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:280) > at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:321) > at org.apache.activemq.store.kahadb.MessageDatabase.start(MessageDatabase.java:182) > at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.start(KahaDBPersistenceAdapter.java:183) > at org.apache.activemq.broker.BrokerService.start(BrokerService.java:469){code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.