[
https://issues.apache.org/activemq/browse/AMQ-1650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Davies resolved AMQ-1650.
-----------------------------
Resolution: Fixed
Fixed by svn revision 646332
> AmqPersistenceAdapter throws java.io.IOException: Failed to read to journal
> for: offset
> ---------------------------------------------------------------------------------------
>
> Key: AMQ-1650
> URL: https://issues.apache.org/activemq/browse/AMQ-1650
> Project: ActiveMQ
> Issue Type: Bug
> Components: Message Store
> Affects Versions: 5.0.0
> Reporter: Rob Davies
> Assignee: Rob Davies
> Priority: Critical
> Fix For: 5.1.0
>
>
> Using durable consumers with multiple topics - can occasionally see this
> timing issue:
> Caused by: java.io.IOException: Failed to read to journal for: offset =
> 17883251, file = 2, size = 0, type = 0. Reason: java.io.IOException: Invalid
> location: offset = 17883251, file = 2, size = 0, type = 0, :
> java.lang.NegativeArraySizeException
> at
> org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
> at
> org.apache.activemq.store.amq.AMQPersistenceAdapter.createReadException(AMQPersistenceAdapter.java:597)
> at
> org.apache.activemq.store.amq.AMQPersistenceAdapter.readCommand(AMQPersistenceAdapter.java:483)
> at
> org.apache.activemq.store.amq.AMQMessageStore.getMessage(AMQMessageStore.java:431)
> at
> org.apache.activemq.store.amq.RecoveryListenerAdapter.recoverMessageReference(RecoveryListenerAdapter.java:54)
> at
> org.apache.activemq.store.kahadaptor.KahaReferenceStore.recoverReference(KahaReferenceStore.java:80)
> at
> org.apache.activemq.store.kahadaptor.KahaTopicReferenceStore.recoverNextMessages(KahaTopicReferenceStore.java:285)
> at
> org.apache.activemq.store.amq.AMQTopicMessageStore.recoverNextMessages(AMQTopicMessageStore.java:62)
> at
> org.apache.activemq.broker.region.cursors.TopicStorePrefetch.doFillBatch(TopicStorePrefetch.java:106)
> at
> org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:185)
> ... 27 more
> Caused by: java.io.IOException: Invalid location: offset = 17883251, file =
> 2, size = 0, type = 0, : java.lang.NegativeArraySizeException
> at
> org.apache.activemq.kaha.impl.async.DataFileAccessor.readRecord(DataFileAccessor.java:95)
> at
> org.apache.activemq.kaha.impl.async.AsyncDataManager.read(AsyncDataManager.java:585)
> at
> org.apache.activemq.store.amq.AMQPersistenceAdapter.readCommand(AMQPersistenceAdapter.java:480)
> ... 34 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.