Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5438

Archiving mKahaDB log files cause broker restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.10.0
    • 5.11.0
    • Message Store
    • 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]
      

      Attachments

        Activity

          People

            dejanb Dejan Bosanac
            jkorab Jakub Korab
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: