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

mKahaDB causes ArrayIndexOutOfBoundsException on restart after deleting existing queues

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: Broker
    • Labels:
      None
    • Environment:

      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. AMQ3841Test.java
          4 kB
          Timothy A. Bish
        2. output.txt
          21 kB
          Matt Altermatt

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: