-
Notifications
You must be signed in to change notification settings - Fork 624
Add support for DLQ error handling within functional programming model #1729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I believe this is related to https://stackoverflow.com/questions/56528263/sending-errors-to-kafka-retry-topic-with-spring-cloud-stream This is indeed a bug that would require some enhancements in upstream projects (e.g, spring-kafka/integration/rabbit etc). Thanks for reporting it. |
Tagging @garyrussell @artembilan |
The The documentation should be fixed to remove that legacy stuff if it's still there. That commit did remove one reference: a82c906#diff-369a0fe7a77fddec73a04336c6c349bd |
Thank you for the rapid response. |
I'll fix the documentation as part of the commit for this issue once Gary/Artem will signal that their snapshots with relevant enhancements ready |
The feature has been implemented in Spring Integration: spring-projects/spring-integration#2958. We we always add |
I just changed the title and also reclassified it as an enhancement rather then a bug given we never really had it working |
…odel - Change FunctionInvoker.onError() to send to binding error channel instead of global one - Binders contain relevant changes as well Resolves spring-cloud#1729
So the issue is addressed in the corresponding PR(s), however we can't really merge them until the relevant bits on spring-rabbit/kafka/integration are released with subsequent spring-boot release. That said you can certainly build for now from PR(s) and test it. You'd have to build core first and then corresponding kafka or rabbit PR depending on the binder you are using. |
Issue exist with Stream Listener as well. Has this been fixed only for functions? |
addressed PR comment Resolves spring-cloud#250
addressed PR comment Resolves spring-cloud#670
I'm been reading available documentation and I am very confused about the correct approach to get an error topic working when using the Kafka binder.
The current documentation states that the property
spring.cloud.stream.bindings.error.destination
can be used to configure a global error topic, but this support appears to have been removed in this commit.I have also tried to implement using properties for the Kafka binder specifically; the code below demonstrates my attempt, including the configuration.
My Maven BOM is
org.springframework.cloud:spring-cloud-dependencies:Greenwich.SR1
and my dependencies are:It would be great if it could be clarified how exactly a global error topic can be set up. So far, with the code below, I can see the message being handled multiple times via retries, but nothing is sent to the error topic (DLQ) that I have configured.
The text was updated successfully, but these errors were encountered: