Repository navigation
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. |
Answered by
acogoluegnes
Sep 26, 2024
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 |
0 replies
Answer selected by
acogoluegnes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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
Thread.sleep(1000)or better aCountDownLatchto make sure the message reaches the broker and you get the confirmation.