'Sending messages to durable queue using Rabbit perf test tool
How can I send messages to a durable queue using the Rabbit Perf Test tool? I am getting this following error:
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'durable' for queue 'myservice_q' in vhost 'myvhost': received 'false' but current is 'true', class-id=50, method-id=10)
A command I tried is:
bin/runjava com.rabbitmq.perf.PerfTest -h amqps://myrabbit.instance.com:5671/myvhost -u myservice_q -ad false -pmessages 10 -y0 -f mandatory -f persistent
I used the -f
flag with both values persistent
and mandatory
and it did not work. I tried other flags offered by the tool and none worked. Can someone tell me how this can be done?
Solution 1:[1]
I was able to do it by using both the flags -f mandatory -f persistent
. It worked.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | techjourneyman |