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

Archiving mKahaDB log files cause broker restart

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.10.0
    • Fix Version/s: 5.11.0
    • Component/s: Message Store
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: