You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Laci Gaspar <la...@gmail.com> on 2014/08/25 14:49:49 UTC

Upgrade from 5.9. to 5.10

Hi
I want to upgrade from 5.9 to 5.10.
In my data directory I have two folders: kahadb and broker-1 (which is 
the name of the broker)

What I tried is to copy both folders to the 5.10 installation and start it.
That works but the numbers in 'Numbers of Pending Messages', 'Messages 
Enqueued' and 'Messages Dequeued' are all zero.

How can I migrate the kahaDB, so that I have the same state after 
switching to 5.10?

Thanks.
Regars,
Laci

Re: Upgrade from 5.9. to 5.10

Posted by artnaseef <ar...@artnaseef.com>.
You're welcome.  I wish I could spend a lot more time here ;-).



--
View this message in context: http://activemq.2283324.n4.nabble.com/Upgrade-from-5-9-to-5-10-tp4685006p4685156.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Upgrade from 5.9. to 5.10

Posted by Laci Gaspar <la...@gmail.com>.
Thanks for your response! That's exactly what I needed to know.
Regards,
Laci

> Am 29.08.2014 um 16:22 schrieb artnaseef <ar...@artnaseef.com>:
> 
> The lack of responses is typically due to the fact that this is a
> 100%-volunteer site and people just aren't around.  So, keep trying!
> 
> To answer the technical question: enqueue and dequeue counts do not persist,
> so a restart of the broker (or moving messages to another broker) do not
> maintain those values.
> 
> Try storing a bunch of messages in a persistent queue, restarting the broker
> and then consuming them all.  You'll find a large dequeue number with an
> enqueue number of 0.
> 
> For Queues, use the QueueSize value for each to determine the number of
> messages each contains.  For Topic messages, look at the PendingQueueSize
> (check the name of this one) in subscriptions since subscriptions store the
> messages - not the Topic itself.  And, for the overall count, use the
> broker's TotalMessageCount.
> 
> 
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Upgrade-from-5-9-to-5-10-tp4685006p4685147.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Upgrade from 5.9. to 5.10

Posted by artnaseef <ar...@artnaseef.com>.
The lack of responses is typically due to the fact that this is a
100%-volunteer site and people just aren't around.  So, keep trying!

To answer the technical question: enqueue and dequeue counts do not persist,
so a restart of the broker (or moving messages to another broker) do not
maintain those values.

Try storing a bunch of messages in a persistent queue, restarting the broker
and then consuming them all.  You'll find a large dequeue number with an
enqueue number of 0.

For Queues, use the QueueSize value for each to determine the number of
messages each contains.  For Topic messages, look at the PendingQueueSize
(check the name of this one) in subscriptions since subscriptions store the
messages - not the Topic itself.  And, for the overall count, use the
broker's TotalMessageCount.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Upgrade-from-5-9-to-5-10-tp4685006p4685147.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Upgrade from 5.9. to 5.10

Posted by lacigas <la...@gmail.com>.
Hi
I'm a bit puzzled, that I don't get any replies. Is this because 
- it's a stupid question
- nobody experienced this before
- nobody knows the answer

Surely I'm not the only one who ever did an upgrade in a productive system
and had to preserve the state of the queues.

Thanks for your time.
Regards
Laci



--
View this message in context: http://activemq.2283324.n4.nabble.com/Upgrade-from-5-9-to-5-10-tp4685006p4685134.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Upgrade from 5.9. to 5.10

Posted by Laci Gaspar <la...@gmail.com>.
Hi
sorry, little mistake.
It seems that the number of pending messages is preserved after copying 
kahaDB to th 5.10 installation.
But 'Messages Enqueued' and 'Messages Dequeued' are reset to zero. Is 
there any way to preserve the old state?

Thanks,
Laci


On 25.08.2014 14:49, Laci Gaspar wrote:
> Hi
> I want to upgrade from 5.9 to 5.10.
> In my data directory I have two folders: kahadb and broker-1 (which is 
> the name of the broker)
>
> What I tried is to copy both folders to the 5.10 installation and 
> start it.
> That works but the numbers in 'Numbers of Pending Messages', 'Messages 
> Enqueued' and 'Messages Dequeued' are all zero.
>
> How can I migrate the kahaDB, so that I have the same state after 
> switching to 5.10?
>
> Thanks.
> Regars,
> Laci