You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "singaravelu.subu" <si...@gmail.com> on 2011/10/04 03:04:17 UTC
ActiveMQ 5.5 sends infinite duplicate message
Hi,
I'm using Active MQ 5.5. In one of my sample project, when I was
experimenting with Queue, I observed the activeMQ server was sending the
same message over and over infinitely to the consumer.
Here are observations:
1. The Admin console always shows one pending message in the queue and never
gone to zero. When I looked at the subscriber, the number of messages
received were more and out of those messages, I could see only one message
repeated many times.
2. The broker never sent this problematic message alone to the subscriber.
It always sent this message along with the new message reaching the queue.
ie, when the publisher post a new message to the queue, the subscriber
receives two message, one is actual message (new) and the other is
problematic message (one got stuck in queue).
3. Though for how many number of times the problematic message is send, the
Admin console always said one pending message in the queue and the consumer
don't receive it unless a new message reaches the queue.
The problem got solved after I delete kahadb directory. Not sure what
scenario might have caused this issue and even it could not be reproduced
again.
Let me know if anyone experienced the same issue. Also not sure how to
validate if this case had happens in production with millions of transaction
per day.
Is there a way I put defensive code in the consumer to ignore these
duplicate messages or how can I configure the monitoring tool to notify such
an issue?
thanks,
Sing
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-5-sends-infinite-duplicate-message-tp3869604p3869604.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: ActiveMQ 5.5 sends infinite duplicate message
Posted by "singaravelu.subu" <si...@gmail.com>.
No, I didn't ack. All the messages I used are non-transactional messages.
Sorry, if my previous message was confusing. Those are just messages and not
transactional one.
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-5-sends-infinite-duplicate-message-tp3869604p3870015.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: ActiveMQ 5.5 sends infinite duplicate message
Posted by Johan Edstrom <se...@gmail.com>.
Are you acking that message/tx?
On Oct 3, 2011, at 18:04, "singaravelu.subu" <si...@gmail.com> wrote:
> Hi,
>
> I'm using Active MQ 5.5. In one of my sample project, when I was
> experimenting with Queue, I observed the activeMQ server was sending the
> same message over and over infinitely to the consumer.
>
> Here are observations:
>
> 1. The Admin console always shows one pending message in the queue and never
> gone to zero. When I looked at the subscriber, the number of messages
> received were more and out of those messages, I could see only one message
> repeated many times.
>
> 2. The broker never sent this problematic message alone to the subscriber.
> It always sent this message along with the new message reaching the queue.
> ie, when the publisher post a new message to the queue, the subscriber
> receives two message, one is actual message (new) and the other is
> problematic message (one got stuck in queue).
>
> 3. Though for how many number of times the problematic message is send, the
> Admin console always said one pending message in the queue and the consumer
> don't receive it unless a new message reaches the queue.
>
> The problem got solved after I delete kahadb directory. Not sure what
> scenario might have caused this issue and even it could not be reproduced
> again.
>
> Let me know if anyone experienced the same issue. Also not sure how to
> validate if this case had happens in production with millions of transaction
> per day.
>
> Is there a way I put defensive code in the consumer to ignore these
> duplicate messages or how can I configure the monitoring tool to notify such
> an issue?
>
> thanks,
> Sing
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-5-sends-infinite-duplicate-message-tp3869604p3869604.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.