RetryTopicConfiguration doesn't work if KafkaListener is used on class level #3010
-
Hi I am creating non-blocking retry through RetryTopicConfiguration. It works fine if I have a KafkaListener on method level. But if I move it to class level and use a KafkaHandler on method level, it will use the DefaultErrorHandler backoff. Can't I use RetryTopicConfiguration together with class level KafkaListener? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @Casper-dss I was in the same trouble (spring-kafka 2.9.X) . |
Beta Was this translation helpful? Give feedback.
-
The reference docs also make it clear that |
Beta Was this translation helpful? Give feedback.
Currently, you have to use
KafkaListener
at the method level. The complexity of the changes involved is why this may not be supported. Feel free to create an issue in the backlog, and we will get to it, or someone from the community can address it and contribute a fix.