<p>I am creating shovel plugin in rabbit mq, that is working fine with one pod, However, We are running on Kubernetes cluster with multiple pods and in case of pod restart, it is creating multiple instance of shovel on each pod independently, which is causing duplicate message replication on destination.</p>
<p>Detail steps are below</p>
<ol>
<li><p>We are deploying rabbit mq on Kubernetes cluster using helm chart.</p>
</li>
<li><p>After that we are creating shovel using Rabbit MQ Management UI. Once we are creating it from UI, shovels are working fine and not replicating data multiple time on destination.</p>
</li>
<li><p>When any pod get restarted, it create separate shovel instance. That start causing issue of duplicate message replication on destination from different shovel instance.</p>
</li>
<li><p>When we saw shovel status on Rabbit MQ UI then we found that, there are multiple instance of same shovel running on each pod.</p>
</li>
<li><p>When we start shovel from Rabbit MQ UI manually, then it will resolved this issue and only once instance will be visible in UI.</p>
</li>
</ol>
<p>So problem which we concluded that, in case of pod failure/restart, shovel is not able to sync with other node/pod, if any other shovel is already running on node/pod. Since we are able to solve this issue be restarting of shovel form UI, but this not a valid approach for production.
This issue we are not getting in case of queue and exchange.</p>
<p>Can anyone help us here to resolve this issue.</p>

Nilay Tiwari
<p>as we lately have seen similar problems - this seems to be an issue since some 3.8. version - <a href="https://github.com/rabbitmq/rabbitmq-server/discussions/3154" rel="nofollow noreferrer">https://github.com/rabbitmq/rabbitmq-server/discussions/3154</a></p>
<p>it should be fixed as far as I have understood from version 3.8.20 on. see</p>
<p><a href="https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.19" rel="nofollow noreferrer">https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.19</a>
and
<a href="https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.20" rel="nofollow noreferrer">https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.20</a>
and
<a href="https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.9.2" rel="nofollow noreferrer">https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.9.2</a></p>
<p>didn't have time yet to check if this is really fixed with those versions.</p>
