[
https://issues.apache.org/jira/browse/ARTEMIS-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16406665#comment-16406665
]
Justin Bertram commented on ARTEMIS-1755:
-----------------------------------------
bq. I have to use the same duplicate ID on multiple messages...it is the
person's unique ID.
This is what's causing your problem, and in my opinion is a
misuse/misunderstanding of the duplicate ID. You're only supposed to use the
same duplicate ID on messages which are *exactly* the same so that you avoid
duplication of the same data. In your case the messages are different so you
can use a different duplicate ID on each.
bq. I want the second message with duplicate ID to enter into the queue given
that the original message with the same ID was already consumed or deleted from
the queue.
I recommend you use duplicate detection as it was designed to be used, and I
don't think you'll have this problem. At this point, I don't see a reason to
change how the current duplication detection functionality is implemented.
> Delete message from duplicate cache on message consume
> ------------------------------------------------------
>
> Key: ARTEMIS-1755
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1755
> Project: ActiveMQ Artemis
> Issue Type: Improvement
> Components: Broker
> Affects Versions: 2.4.0
> Reporter: Rini Bollarapu
> Priority: Minor
> Labels: newbie
>
> Hi, duplicate cache still contains the message even if the message was
> consumed from the queue or deleted from the queue. From the documentation, it
> looks like there's no configuration to handle something like this.
> Example:
> A message containing a person's information is sent to a queue and consumed.
> After sometime, the person's address is updated and the update message is
> sent to queue. This updated message is ignored as a duplicate because the
> original message was not removed from the duplicate cache when it was
> consumed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)