You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (JIRA)" <ji...@apache.org> on 2015/11/25 17:00:13 UTC

[jira] [Updated] (AMQ-6063) NullPointerException during KahaDB index recovery

     [ https://issues.apache.org/jira/browse/AMQ-6063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher L. Shannon updated AMQ-6063:
----------------------------------------
    Description: 
A broker I was testing ran out of disk space the other day when messages were being written to it because disk usage checks were not set.  After restart, the KahaDB index was detected as corrupted but during the recovery a NullPointerException occurred.

The error occurred in MessageDatabase inside recoveryIndex on this line:

{{sd.locationIndex.remove(tx.keys.location)}}

  was:
A broker I was testing ran out of disk space the other day when messages were being written to it because disk usage checks were not set.  After restart, the KahaDB index was detected as corrupted but during the recovery a NullPointerException occurred.

{noformat}
Caused by: java.lang.NullPointerException
        at org.apache.activemq.store.kahadb.MessageDatabase.recoverIndex(MessageDatabase.java:795) ~[amf-activemq-bootstrap-5.2.0-SNAPSHOT.jar:?]
        at org.apache.activemq.store.kahadb.MessageDatabase$5.execute(MessageDatabase.java:674) ~[amf-activemq-bootstrap-5.2.0-SNAPSHOT.jar:?]
        at org.apache.activemq.store.kahadb.disk.page.Transaction.execute(Transaction.java:779) ~[activemq-kahadb-store-5.12.1.jar:5.12.1]
        at org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:671) ~[amf-activemq-bootstrap-5.2.0-SNAPSHOT.jar:?]
        at org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:434) ~[amf-activemq-bootstrap-5.2.0-SNAPSHOT.jar:?]
        at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:452) ~[amf-activemq-bootstrap-5.2.0-SNAPSHOT.jar:?]
        at org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:269) ~[amf-activemq-bootstrap-5.2.0-SNAPSHOT.jar:?]
        at org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:206) ~[activemq-kahadb-store-5.12.1.jar:?]
        at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55) ~[activemq-client-5.12.1.jar:5.12.1]
        at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.doStart(KahaDBPersistenceAdapter.java:232) ~[amf-activemq-bootstrap-5.2.0-SNAPSHOT.jar:?]
        at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55) ~[activemq-client-5.12.1.jar:5.12.1]
{noformat}


> NullPointerException during KahaDB index recovery
> -------------------------------------------------
>
>                 Key: AMQ-6063
>                 URL: https://issues.apache.org/jira/browse/AMQ-6063
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.12.1
>            Reporter: Christopher L. Shannon
>            Assignee: Christopher L. Shannon
>
> A broker I was testing ran out of disk space the other day when messages were being written to it because disk usage checks were not set.  After restart, the KahaDB index was detected as corrupted but during the recovery a NullPointerException occurred.
> The error occurred in MessageDatabase inside recoveryIndex on this line:
> {{sd.locationIndex.remove(tx.keys.location)}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)