Open krisztiankocsis opened 8 months ago
/cc @alesj (kafka), @cescoffier (kafka), @ozangunalp (kafka)
@ozangunalp Is there any news about this issue?
Sorry for my late response. This was indeed fixed on the upstream Reactive Messaging, and will be included in the next release (3.7) of Quarkus.
Describe the bug
We are sending multiple Kafka messages within a Kafka transaction and use the code below to make in synchronous, because we have to know in that location of the code that the message is both accepted. I expected that waiting on the Uni indefinitely do this, and throws if something is not okay.
This is injected: KafkaTransactions messageProducer;
One example is, if the message is too big, I'll later get a log message from Kafka: The message is 95645096 bytes when serialized which is larger than 83886080, which is the value of the max.request.size configuration.
I want to be able to catch that errors here in the code, or need an other way to catch such errors in a way that I can identify the transaction - because I have to mark the related entity as "Failed to send".
Quarkus version: 3.4.3
Expected behavior
Uni.await().indefinitely() returns only if the message is already sent.
Actual behavior
Seem to return when the message is only enqueue inside Kafka.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
17
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response