How Do I Repair the KahaDB Index for an AMQ Broker on OpenShift?

Solution Verified - Updated -

Issue

I am having a problem restarting one of my AMQ broker pods in OpenShift. When I try to scale up, my broker is going into a crash loop and the log shows an exception with a cause like the following:

Caused by: java.io.EOFException
    at java.io.RandomAccessFile.readFully(RandomAccessFile.java:438)
    at java.io.RandomAccessFile.readFully(RandomAccessFile.java:416)
    at org.apache.activemq.util.RecoverableRandomAccessFile.readFully(RecoverableRandomAccessFile.java:79)
    at org.apache.activemq.store.kahadb.disk.journal.DataFileAccessor.readRecord(DataFileAccessor.java:88)
    at org.apache.activemq.store.kahadb.disk.journal.Journal.read(Journal.java:951)
    at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:1135)
    at org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:1234)
    ... 54 more

Environment

Red Hat AMQ 6.3
Red Hat AMQ 6.2.1
Red Hat OpenShift Container Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content