Hi Gary,

When i switch my broker from 5.8 to 5.10, everything seems to be normal and
works fine. But when I switch back from 5.10 to 5.8, I am seeing issues. 


Below are the details of my configuration: 
1. Using MultikahaDB. 

Configuration: 

*       <amq:persistenceAdapter>
            <amq:mKahaDB directory="/u/khandela/activemq/kahadb"
journalMaxFileLength="64mb">
                <amq:filteredPersistenceAdapters>
                    <amq:filteredKahaDB queue="flow.>">
                        <amq:persistenceAdapter>
                            <amq:kahaDB/>
                        </amq:persistenceAdapter>
                    </amq:filteredKahaDB>

                    <amq:filteredKahaDB queue="gear.>">
                        <amq:persistenceAdapter>
                            <amq:kahaDB/>
                        </amq:persistenceAdapter>
                    </amq:filteredKahaDB>

                   
                    <amq:filteredKahaDB>
                        <amq:persistenceAdapter>
                            <amq:kahaDB/>
                        </amq:persistenceAdapter>
                    </amq:filteredKahaDB>

               </amq:filteredPersistenceAdapters>
            </amq:mKahaDB>
        </amq:persistenceAdapter>

*




Details of my test case: 

Started broker with 5.8, stopped and started with 5.10 (works fine) but
again stopped and started broker with 5.8 (Not working). Please note that I
have tested this with two case: (i) clients are conencted (ii) clients are
not connected, and in both the cases the same issue observed. 

Error is provided below: 
--------------------
[20140705 16:47:14.724 IST (main)
org.apache.activemq.store.kahadb.MessageDatabase#recover 562 INFO] -
Recovering from the journal ... 
[20140705 16:47:14.725 IST (main)
org.apache.activemq.broker.BrokerService#start 556 ERROR] - Failed to start
Apache ActiveMQ (anujmqbrokerdev, null). Reason: java.io.IOException: Could
not load journal record. Invalid location: 1:978 
       at
org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:972)
        at
org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:564)
        at
org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:369)
        at
org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:387)
        at
org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:240)
        at
org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:180)
        at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
        at
org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.doStart(KahaDBPersistenceAdapter.java:220)
        at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
        at
org.apache.activemq.store.kahadb.MultiKahaDBPersistenceAdapter.start(MultiKahaDBPersistenceAdapter.java:322)
        at
org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:598)
        at
org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:587)
        at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:552)
        at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

--------------------


Thanks,
Anuj






--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-5-10-compatibility-with-KahaDB-tp4682812p4682831.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to