[
https://issues.apache.org/activemq/browse/AMQ-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_37893
]
Homer commented on AMQ-1121:
----------------------------
I have run into a similar issue where AMQ gets hung on restart. In my case,
the KahaStore is stuck in an infinite loop because it finds two IndexItem
objects from the file that point to each other. It's a potential show stopper
because there is no way to recover the data in the queue.
Here's a dump of the object variables from Eclipse:
item IndexItem (id=212)
active false
keyFile 1
keyOffset 153495
keySize 61
next null
nextItem 612
offset 765
prev null
previousItem 51
valueFile 1
valueOffset 153561
valueSize 468
item IndexItem (id=240)
active false
keyFile 1
keyOffset 114687
keySize 61
next null
nextItem 765
offset 612
prev null
previousItem 51
valueFile 1
valueOffset 114753
valueSize 468
> Kaha DB hangs on restart
> ------------------------
>
> Key: AMQ-1121
> URL: https://issues.apache.org/activemq/browse/AMQ-1121
> Project: ActiveMQ
> Issue Type: Bug
> Components: Message Store
> Affects Versions: 4.1.0
> Environment: Windows XP, NetApp
> Reporter: Vadim Pesochinskiy
> Assigned To: Rob Davies
> Priority: Blocker
> Fix For: 4.1.0
>
>
> I run a bunch or messages through AMQ, then restarted AMQ and it hangs.
> Following are the last messages that I see. AMQ is not listening on the
> configured port.
> 2007-01-06 01:35:29,723 [main ] DEBUG DataManager
> - End of data file reached at (header was invalid): offset = 810, file = 1,
> size = 219
> 2007-01-06 01:35:29,754 [JMX connector ] INFO ManagementContext
> - JMX consoles can connect to
> service:jmx:rmi:///jndi/rmi://localhost:11099/jmxrmi
> 2007-01-06 01:35:32,660 [main ] DEBUG DataManager
> - End of data file reached at (header was invalid): offset = 88244949, file
> = 5, size = 100856
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira