Repository navigation
Fix/3350 dlq publication failure - #3352
Open
itsgourav62 wants to merge 2 commits into
Open
itsgourav62 wants to merge 2 commits into
itsgourav62 wants to merge 2 commits into
Conversation
Signed-off-by: Gourav Shaw <shawgourav62@gmail.com>
Signed-off-by: Gourav Shaw <shawgourav62@gmail.com>
itsgourav62
force-pushed
the
fix/3350-dlq-publication-failure
branch
from
November 28, 2026 12:04
17408c2 to
ad24462
Compare
Contributor
|
Thanks for the report and the PR. The failure mode described here, where a failed DLQ publication still lets the offset be committed, is a real concern and we are reviewing it. Because it changes redelivery behavior when the DLQ is unavailable, we'll go through it carefully, including the manual-ack paths, before merging. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #3350.
The Kafka binder currently catches and logs exceptions raised during Dead Letter Queue (DLQ) publication without propagating the failure. This can cause a failed DLQ recovery operation to be treated as successful, potentially allowing the original Kafka record to be acknowledged or its offset to be committed even though the record was not successfully published to the DLQ.
This change ensures that DLQ publication failures are propagated to the caller so that failed recovery operations are not silently treated as successful.
Changes
Testing
Executed the full Kafka binder module test suite:
mvn -pl binders/kafka-binder/spring-cloud-stream-binder-kafka -am testTest results:
Related issue
Closes #3350.