Replies: 5 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@declan-zZ the goal behind the auto-deleted shovels was never to consume a "slice" of a queue backlog. It's always been to let you transfer everything in a queue and then let the shovel stop. But because "everything" is hard to define in the world of messages because the data set is dynamic, the setting says "N messages". So it exists for moving data from a source that's no longer needed but still has some data, without writing a small app/script to move the messages for you. We will not guess as to what RabbitMQ version you use, whether it is [still covered by community support](https://www.rabbitmq.com/release-information and so on. |
Beta Was this translation helpful? Give feedback.
-
hi @michaelklishin @mkuratczyk Any chance the shovel doesn't wait for the ack from the "re-publisher" and terminiates itself as no more msgs in the source queue? However, some msgs could still be in-the-fly and not yet acked. Once the shovel/consumer is terminated, msgs in-the-fly are requeued/left-over. That explains the issue unlikely appears if the prefetch is smaller. |
Beta Was this translation helpful? Give feedback.
-
@declan-zZ Thanks for your report. I haven't seen it happening and I've worked recently a lot with auto-delete shovels, but it can happen as shovel doesn't wait for message confirmation when it auto-deletes. It just counts messages sent. So if your app takes some time to acknowledge messages, the shovel can stop before. Seeing this side effect, I would consider it a bug. I'll look into it. |
Beta Was this translation helpful? Give feedback.
-
@declan-zZ I created the following repository to make it easy to try and reproduce what you report: https://github.com/lukebakken/rabbitmq-server-14639 It works correctly every time. Please note how I declare the dynamic shovel: https://github.com/lukebakken/rabbitmq-server-14639/blob/main/Makefile#L25 Parameters:
If you really are using @declan-zZ in the future, when you report an issue to any software project, put in the effort to make it simple and easy for the maintainers to reproduce what you report. It will be appreciated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
when creating a shovel with below settings:
The shovel deletes itself prematurely before all the messages in the source queue are transferred.
Reproduction steps
Expected behavior
The shovel deletes itself only after all the messages in the source queue are transferred.
Additional context
If I update src-prefetch-count to a smaller count (say 1), the shovel can work as expected.
Beta Was this translation helpful? Give feedback.
All reactions