Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.10.0
-
None
-
OSX
Description
When using the following config, the broker service seems to restart every journal archive interval (30s):
<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>
The log files show the following exception:
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]