You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jakub Korab (JIRA)" <ji...@apache.org> on 2014/11/18 16:26:34 UTC

[jira] [Commented] (AMQ-5438) Archiving mKahaDB log files cause broker restart

    [ https://issues.apache.org/jira/browse/AMQ-5438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216288#comment-14216288 ] 

Jakub Korab commented on AMQ-5438:
----------------------------------

Fixed issue, with supporting unit test. Pull request on Gihtub (https://github.com/apache/activemq/pull/50).

> 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
>
> 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)