Spring-kafka 2.7.4 - not able to connect to dev broker when using @RetryableTopic #1921
-
| 
         I am using Spring-kafka 2.7.4 and Spring boot: 2.5.3 I'm running into a weird issue... Here is my config: application.yml: When I try running the app pointing to Dev clusters i see the following in the logs saying it is not able to connect to localhost:9092- However if my Kafka is running locally, somehow it is able to fetch records from the Dev broker.. The app fetches records from Dev if I comment out @RetryableTopic Can you please let me know if I am missing anything in the configuration..  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
| 
         That makes no sense at all; it's hard for us to tell what's wrong without much more info. Are you saying it works without the   | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         I can't reproduce it; it works fine for me; something must be wrong with your configuration. Can you provide a Minimal, Complete, Reproducible Example that exhibits this behavior?  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         You are setting the  Use  The separate properties for each is, say, for when you want to consume from one cluster and produce to a different one.  | 
  
Beta Was this translation helpful? Give feedback.
You are setting the
bootstrap-serversfor consumers only; the retry topic uses theKafkaAdminto create the retry topics and it has no bootstrap servers specified.Use
spring.kafka.bootstrap-serverswhich will then be applied to consumers, producers, and the admin.The separate properties for each is, say, for when you want to consume from one cluster and produce to a different one.