RabbitMQ Streams error code 10004

57 views
Skip to first unread message

Nicolas Piguet

unread,
Sep 5, 2023, 4:55:00 AM9/5/23
to rabbitmq-users
Hello,

We've been having some weird errors that occur every day at the same time while publishing messages to RabbitMQ streams. Our client uses streams java client client to publish a message, and for inexplicable reasons, it takes ~50 seconds (while it usually takes ~1ms) to receive the confirmationStatus. That confirmation contains the error code 10004.

Interestingly, the message was still somehow published, because I can see the consumer of the stream handling the message. However, the consumer received the message about 5s after the timestamp of the producer's send attempt (so 45s before the producer gets a confirmation error), while we usually have ~2ms between the publisher and consumer timestamps.

I have been unable to find the meaning of that error in the documentation, the streams procotol specification, or the rabbitmq-server and rabbitmq-stream-java-client repos on github. 

Does anyone know what error code 10004 means? Also, more generally, is there a list of these error code somewhere?

Nicolas Piguet

unread,
Sep 5, 2023, 5:20:23 AM9/5/23
to rabbitmq-users
Nevermind... 

I found it here:

Which led me to here:

Which explained why I didn't find it when searching github. In the source, it's spelled as "10_004"...

Karl Nilsson

unread,
Sep 5, 2023, 5:33:41 AM9/5/23
to rabbitm...@googlegroups.com
that sounds odd, is there anything in the logs around the same time? do you do any scheduled maintenance?

RabbitMQ versions would also be helpful.

Cheers
Karl

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/90eabf25-f35b-47f6-aec5-598bfb648dd4n%40googlegroups.com.


--
Karl Nilsson

Arnaud Cogoluègnes

unread,
Sep 5, 2023, 7:49:43 AM9/5/23
to rabbitmq-users
This is a client-specific error code. The Java client has a background task to "fail" unconfirmed messages after some time (default is 30 seconds), it uses this 10004 error code.

Somehow the message did not get confirmed, maybe the broker never sent the confirm or it got lost by the client. We need more information to investigate (broker and client versions, logs, or better, a way to reproduce the issue).

Reply all
Reply to author
Forward
0 new messages