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

mKahaDB causes ArrayIndexOutOfBoundsException on restart after deleting existing queues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.6.0
    • 5.7.0
    • Broker
    • None
    • Windows 7, JDK 6

    Description

      To replicate, use these settings in the activemq.xml

      		<persistenceAdapter>
      			<mKahaDB directory="${activemq.data}/kahadb">
      				<filteredPersistenceAdapters>
      					<filteredKahaDB perDestination="true" >
      						<persistenceAdapter>
      							<kahaDB journalMaxFileLength="32mb" />
      						</persistenceAdapter>
      					</filteredKahaDB>
      				</filteredPersistenceAdapters>
      			</mKahaDB>
      		</persistenceAdapter>
      
      1. Start the broker
      2. Create a queue
        • This will create the queue in the /kahadb folder
      3. Delete the queue
        • The queue is not deleted from the /kahadb folder
      4. Stop the broker
      5. Start the broker

      This will cause cause the stack trace that is attached.

      To fix this, delete the queue in the /kahadb folder and start the broker. This allows the broker to start as normal.

      Attachments

        1. output.txt
          21 kB
          Matt Altermatt
        2. AMQ3841Test.java
          4 kB
          Timothy A. Bish

        Activity

          People

            tabish Timothy A. Bish
            matt_altermatt Matt Altermatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: