rabbitmq-message-deduplication
rabbitmq-message-deduplication copied to clipboard
Bug - when the rabbitmq is restarted the messages in a persistent queue are not deduplicated
Hi,
first of all thanks for the hard work on the plugin. It is is helping me tremendously:)
I have discovered a situation which may allow duplicate messages to happen in a queue.
I have a queue in which the messages have the right header and are deduplicated. This queue is configured to be persistent. So, when the rabbitmq restarts will reload the messages which were not acknowledged.
The problem I see is that if I try to publish the same messages they will be added in addition to the ones which are already in the queue. If I publish one more time. The second time the messages are not added anymore to the queue. So, what I think is happening is that when the rabbitmq starts and re-add the messages to the queue, they are not added also to the deduplication plugin cash.
would this be hard to fix?