RetryTopicConfiguration not working for multiple cluster #2719
-
Team,
Any lead is much appreciated guys please. Please find my listener
Configuration details are below
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The topic creation logic simply adds I would expect both topics to be created in just one cluster, not both; logs should help you understand what is happening. You really need two Unfortunately, the In the meantime, you should set spring.kafka.admin.auto-create to |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
The topic creation logic simply adds
NewTopic
beans to the application context; these beans are picked up by theKafkaAdmin
bean (presumably the one configured by Boot since you don't have any).I would expect both topics to be created in just one cluster, not both; logs should help you understand what is happening.
You really need two
KafkaAdmin
beans, one for each cluster, with some filtering logic to only declare a subset of the topics in each cluster.Unfortunately, the
KafkaAdmin
is not really designed for subclassing like that. We could make it easier to do that, but it will require changes.In the meantime, you should set spring.kafka.admin.auto-create to
false
(or simply disable a…