Rejected status returned when publishing but message is successfully published to queue #67
-
Describe the bugHi! Was trying out this new AMQP 1.0 java client. Following the guide, here's my simple code to publish a single message to queue.
When I ran the code, I can see the following output:
Server Log:
Reproduction steps... Expected behaviorPublish status should be ACCEPTED instead of REJECTED Additional contextTest RabbitMQ cluster with 3 nodes using quorum based queues. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The callback is asynchronous, so it is likely the publisher is closed before the message makes it to the broker, that is why it does not get accepted. Use a |
Beta Was this translation helpful? Give feedback.
The callback is asynchronous, so it is likely the publisher is closed before the message makes it to the broker, that is why it does not get accepted. Use a
Thread.sleep(1000)
or better aCountDownLatch
to make sure the message reaches the broker and you get the confirmation.