activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dejan Bosanac (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMQ-5438) Archiving mKahaDB log files cause broker restart
Date Thu, 04 Dec 2014 13:06:12 GMT

     [ https://issues.apache.org/jira/browse/AMQ-5438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dejan Bosanac resolved AMQ-5438.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 5.11.0

Patch applied. Thanks!

> Archiving mKahaDB log files cause broker restart
> ------------------------------------------------
>
>                 Key: AMQ-5438
>                 URL: https://issues.apache.org/jira/browse/AMQ-5438
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.10.0
>         Environment: OSX
>            Reporter: Jakub Korab
>            Assignee: Dejan Bosanac
>             Fix For: 5.11.0
>
>
> When using the following config, the broker service seems to restart every journal archive
interval (30s):
> {code:xml}
> <persistenceAdapter>
>   <mKahaDB directory="${activemq.base}/data/kahadb">
>     <filteredPersistenceAdapters>
>       <filteredKahaDB queue="DLQ.>">
>         <persistenceAdapter>
>           <!-- keep small journals, and delete them when consumed -->
>           <kahaDB journalMaxFileLength="4mb" 
>               archiveDataLogs="false"/>
>         </persistenceAdapter>
>       </filteredKahaDB>
>       <filteredKahaDB queue=">">
>         <persistenceAdapter>
>           <!-- keep larger journals, and archive them when consumed -->
>           <kahaDB journalMaxFileLength="32mb" 
>               archiveDataLogs="true"/>
>         </persistenceAdapter>
>       </filteredKahaDB>
>       <!-- match all other destinations (topics); needed for completeness -->
>       <filteredKahaDB>
>         <persistenceAdapter>
>           <kahaDB enableJournalDiskSyncs="false"/>
>         </persistenceAdapter>
>       </filteredKahaDB>
>     </filteredPersistenceAdapters>
>   </mKahaDB>
> </persistenceAdapter>
> {code}
> The log files show the following exception:
> {noformat}
> java.io.IOException: Failed to move /opt/amq-1/data/kahadb/queue#3a#2f#2f#3e/db-2.log
to data-archive
> 	at org.apache.activemq.util.IOHelper.moveFile(IOHelper.java:189)[activemq-broker-5.10.0.jar:5.10.0]
> 	at org.apache.activemq.store.kahadb.disk.journal.DataFile.move(DataFile.java:84)[activemq-kahadb-store-5.10.0.jar:5.10.0]
> 	at org.apache.activemq.store.kahadb.disk.journal.Journal.forceRemoveDataFile(Journal.java:437)[activemq-kahadb-store-5.10.0.jar:5.10.0]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message