You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Joel Cambon <jc...@bottomline.com> on 2016/04/01 08:49:27 UTC
Active MQ 4.1.2 Recovery after persistence database shutdown
Hello,
I've lost messages following this configuration/scenario, but I'm not able
to reproduce this problem again, so I am asking for information about the
recovery process from the Journal in case the database was not able to
persist pending messages.
Here is the scenario:
1 - ActiveMQ server is running, persistence is activated, using a started
Derby database
2 - Messages are written to a queue
3 - Database is shutdown
4 - ActiveMQ is shutdown
5 - Database is started
6 - ActiveMQ is started
Following this scenario, every messages from the queue were disappeared
(nothing in database, nothing in queue, we are able to read part of messages
in the journal but not able to read a specific status).
Is there a possibility that messages writen in activeMQ had a particular
status and no recovery from the journal was possible? The expected behavior
is that at the activeMQ startup, the last non persisted operations from the
journal should be persisted in database?
For information, in activeMQ logs I had this error saying that at step 3 no
persistence was possible (but this looks normal since database is down):
ERROR - Failed to checkpoint a message store:
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException:
java.lang.NullPointerException
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException:
java.lang.NullPointerException
at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299)
at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118)
at
org.apache.activemq.store.journal.JournalPersistenceAdapter.doCheckpoint(JournalPersistenceAdapter.java:386)
at ...(see attached log file for more log trace)
steform.43_start
<http://activemq.2283324.n4.nabble.com/file/n4710175/steform.43_start>
--
View this message in context: http://activemq.2283324.n4.nabble.com/Active-MQ-4-1-2-Recovery-after-persistence-database-shutdown-tp4710175.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Active MQ 4.1.2 Recovery after persistence database shutdown
Posted by Christopher Shannon <ch...@gmail.com>.
I'm not sure if there has been anything reported that would specifically
relate to your issue. So much of the code has changed since then so I
wouldn't know what would be related or not at this point. It's also
possible that it has been fixed from a side effect of another bug fix or
the behavior of the broker changed in such a way that it is no longer a
problem. Best the version is so old your best bet would be to try a more
recent version to see if there is still a problem.
On Fri, Apr 1, 2016 at 10:40 AM, Joel Cambon <jc...@bottomline.com> wrote:
> OK, thanks for your answer. I guess I was hoping for too much. But maybe
> you
> could just tell me if you have had a past bug that needed to be fixed where
> messages have been lost? If you could point us to where I could read that
> for ActiveMQ 4.1.2 or later, that would be very helpful. I've searched this
> information in the list of fixed bugs but I've not found a case matching
> our
> scenario.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Active-MQ-4-1-2-Recovery-after-persistence-database-shutdown-tp4710175p4710199.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Re: Active MQ 4.1.2 Recovery after persistence database shutdown
Posted by Joel Cambon <jc...@bottomline.com>.
OK, thanks for your answer. I guess I was hoping for too much. But maybe you
could just tell me if you have had a past bug that needed to be fixed where
messages have been lost? If you could point us to where I could read that
for ActiveMQ 4.1.2 or later, that would be very helpful. I've searched this
information in the list of fixed bugs but I've not found a case matching our
scenario.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Active-MQ-4-1-2-Recovery-after-persistence-database-shutdown-tp4710175p4710199.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Active MQ 4.1.2 Recovery after persistence database shutdown
Posted by Christopher Shannon <ch...@gmail.com>.
The version of the broker you are using is something like 8 or 9 years
old. You are most likely not going to find someone willing to help unless
you upgrade to a much newer version.
On Fri, Apr 1, 2016 at 2:49 AM, Joel Cambon <jc...@bottomline.com> wrote:
> Hello,
>
> I've lost messages following this configuration/scenario, but I'm not able
> to reproduce this problem again, so I am asking for information about the
> recovery process from the Journal in case the database was not able to
> persist pending messages.
> Here is the scenario:
> 1 - ActiveMQ server is running, persistence is activated, using a started
> Derby database
> 2 - Messages are written to a queue
> 3 - Database is shutdown
> 4 - ActiveMQ is shutdown
> 5 - Database is started
> 6 - ActiveMQ is started
> Following this scenario, every messages from the queue were disappeared
> (nothing in database, nothing in queue, we are able to read part of
> messages
> in the journal but not able to read a specific status).
>
> Is there a possibility that messages writen in activeMQ had a particular
> status and no recovery from the journal was possible? The expected behavior
> is that at the activeMQ startup, the last non persisted operations from the
> journal should be persisted in database?
>
> For information, in activeMQ logs I had this error saying that at step 3 no
> persistence was possible (but this looks normal since database is down):
> ERROR - Failed to checkpoint a message store:
> edu.emory.mathcs.backport.java.util.concurrent.ExecutionException:
> java.lang.NullPointerException
> edu.emory.mathcs.backport.java.util.concurrent.ExecutionException:
> java.lang.NullPointerException
> at
>
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299)
> at
>
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118)
> at
>
> org.apache.activemq.store.journal.JournalPersistenceAdapter.doCheckpoint(JournalPersistenceAdapter.java:386)
> at ...(see attached log file for more log trace)
> steform.43_start
> <http://activemq.2283324.n4.nabble.com/file/n4710175/steform.43_start>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Active-MQ-4-1-2-Recovery-after-persistence-database-shutdown-tp4710175.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>