Does your Kafka share consumer tell you when an acknowledgement fails?
Spring Kafka's default synchronous share-container path logged nothing when a commit returned a per-partition failure.
Not on Spring Kafka's default synchronous path: the commit returned a failure for the partition, but the container logged nothing.
Question
Can the default synchronous commit path miss a failed share-consumer acknowledgement even when Kafka reports it?
What I did
I compared default synchronous commits, asynchronous commits, and a configured callback (code that receives the result) in the Spring for Apache Kafka 4.2.0 share container.
What I saw
commitSync returned failures by partition instead of throwing an exception. With the default synchronous commit behavior, nothing was logged. Asynchronous commits did log those failures, and a configured callback received them.
What to do
- Test whether the commit path you use reports a per-partition failure even when no exception is thrown.
- Check the logs or the callback that receives the result.
Limits
Tested with Spring Kafka 4.2.0 and Kafka 4.4.0, using one record, a three-second lock, and a five-second listener.
Evidence
I reported issue #5012. karanratra proposed PR #5017, which is not merged. I verified on a real broker that the proposed fix logs an error per failed partition on the default synchronous path. The callback case was unchanged, with no double logging.