activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Duplicate messages received with ActiveMQ 5.13.2
Date Wed, 19 Jul 2017 04:59:40 GMT
Do you have conduitSubscriptions set to false for your networkConnectors?

Or are your topics virtual and you're dynamically including both the topic
and the consumer queues?

Both of those could result in duplicate messages on a topic.

Tim

On Jul 18, 2017 6:36 AM, "tpavelka" <tomas.pavelka@ca.com> wrote:

> I have a problem where I produce a TextMessage to a topic and the consumer
> receives it twice. I only have one system where I can reproduce this and I
> would appreciate any tips on how to debug this further.
>
> I have four JVMs, let's call them A, B, C and D. Each one runs an ActiveMQ
> broker. The connection topology looks like this:
>
> A -> B
> C -> B
> D -> B
>
> I.e. B is the only one with broker that runs transport connectors.
>
> Let's say that I have topic T, where C and D have subscribers with
> AUTO_ACKNOWLEDGE.
>
> - If A sends a text message to T, then C receives it twice
> - If D is not connected then C receives it only once.
>
> I put some debug logs in C and so far I have learned the following about
> the
> two instances received:
>
> 1) The messages arrive about 200 ms apart.
> 2) Both messages have the same id as returned by
> javax.jms.Message#getJMSMessageID
> 3) Both have the same connection as reported by
> org.apache.activemq.command.Message#getConnection
> 4) Both have redelivered as false as reported by
> org.apache.activemq.command.ActiveMQMessage#getJMSRedelivered
> 5) Both have redeliver counter = 0 as reported by
> org.apache.activemq.command.Message#getRedeliveryCounter
> 6) The messages have different broker intime, as reported by
> org.apache.activemq.command.Message#getBrokerInTime - The first has
> 1500305481165 and the second has 1500305481166.
>
> I have tried to reproduce this elsewhere without any success and I am near
> the end of my wits.
>
> Thanks for any debugging tips.
>
> Tomas
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Duplicate-messages-received-with-ActiveMQ-5-13-2-tp4728627.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message