You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using throttledcommit strategy in Quarkus Kafka Reactive Messaging and using payload as method parameter doesn't automatically acknowledge the message if the return value is a Message.
2024-05-13 10:52:54,341 WARN [io.sma.rea.mes.kafka] (vert.x-eventloop-thread-0) SRMSG18231: The record 0 from topic-partition 'joe-out-topic-0' has waited for 4 seconds to be acknowledged. This waiting time is greater than the configured threshold (3000 ms). At the moment 9 messages from this partition are awaiting acknowledgement. The last committed offset for this partition was -1. This error is due to a potential issue in the application which does not acknowledged the records in a timely fashion. The connector cannot commit as a record processing has not completed.
2024-05-13 10:52:54,342 WARN [io.sma.rea.mes.kafka] (vert.x-eventloop-thread-0) SRMSG18228: A failure has been reported for Kafka topics '[joe-out-topic]': io.smallrye.reactive.messaging.kafka.commit.KafkaThrottledLatestProcessedCommit$TooManyMessagesWithoutAckException: The record 0 from topic/partition 'joe-out-topic-0' has waited for 4 seconds to be acknowledged. At the moment 9 messages from this partition are awaiting acknowledgement. The last committed offset for this partition was -1.
Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Output of java -version
openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment GraalVM CE 22.3.1 (build 17.0.6+10-jvmci-22.3-b13) OpenJDK 64-Bit Server VM GraalVM CE 22.3.1 (build 17.0.6+10-jvmci-22.3-b13, mixed mode, sharing)
Quarkus version or git rev
3.10.0
Build tool (ie. output of mvnw --version or gradlew --version)
maven 3.9.6
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Using
throttled
commit strategy in Quarkus Kafka Reactive Messaging and using payload as method parameter doesn't automatically acknowledge the message if the return value is aMessage
.Example non working code:
Working code
Expected behavior
This behaviour should be documented (https://quarkus.io/guides/kafka#processing-messages) or a message should be automatically acknowledged.
Actual behavior
Message is not acknowledged automatically when processed and offsets are not committed to Kafka broker.
How to Reproduce?
kafka-messaging-bug.zip
Output of
uname -a
orver
Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
Output of
java -version
openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment GraalVM CE 22.3.1 (build 17.0.6+10-jvmci-22.3-b13) OpenJDK 64-Bit Server VM GraalVM CE 22.3.1 (build 17.0.6+10-jvmci-22.3-b13, mixed mode, sharing)
Quarkus version or git rev
3.10.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)maven 3.9.6
Additional information
No response
The text was updated successfully, but these errors were encountered: