activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Dulin <oleg.du...@gmail.com>
Subject AMQ 5.8.1 failed to restart after a hardware crash
Date Sun, 03 Nov 2013 13:25:04 GMT
I believe my issue is related to this:

https://issues.apache.org/jira/browse/AMQ-3422

I got this exception:

java.lang.RuntimeException: java.io.IOException: Invalid location: 
8249:28018848, : java.lang.NegativeArraySizeException
        at 
org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:277)


        at 
org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110)


        at 
org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)


        at 
org.apache.activemq.broker.region.Queue.doPageInForDispatch(Queue.java:1775) 

        at 
org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:2003)
        at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1491)
        at 
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129) 

        at 
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47) 

        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 

        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 

        at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Invalid location: 8249:28018848, : 
java.lang.NegativeArraySizeException
        at 
org.apache.activemq.store.kahadb.disk.journal.DataFileAccessor.readRecord(DataFileAccessor.java:92)


        at 
org.apache.activemq.store.kahadb.disk.journal.Journal.read(Journal.java:604) 

        at 
org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:961) 

        at 
org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:1029) 

        at 
org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$4.execute(KahaDBStore.java:557)


        at 
org.apache.activemq.store.kahadb.disk.page.Transaction.execute(Transaction.java:779) 

        at 
org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:546)


        at 
org.apache.activemq.store.ProxyMessageStore.recoverNextMessages(ProxyMessageStore.java:106)


        at 
org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97)


        at 
org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:274)


        ... 10 more


I couldn't restart no matter what. It's silly that kahadb got corrupted 
because of a crash, defeats the whole purpose of a disk journal.

I ended up clearing out data directory and restarting, but that is suboptimal.

Any thoughts ?


-- 
Regards,
Oleg Dulin
http://www.olegdulin.com
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message