destinationIsPattern: true using @StreamListener not picking up new topics with matching pattern (KafkaStreamsBinder)
See original GitHub issueI am struggling to get the destinationIsPattern: true using @StreamListener in Spring Boot application. @KafkaListener(topicPattern = “.\.topicName.”) works fine but having issue with @StreamListener.
Following is my current configuration.
cloud:
stream:
bindings:
topic-in:
destination: .*\..*topicName
contentType: application/json
kafka:
streams:
binder:
brokers: ${KAFKA_SERVERS:localhost:9092}
configuration:
metadata.max.age.ms: 6000
auto.offset.reset: earliest
bindings:
topic-in:
consumer:
destinationIsPattern: true
Appreciate any help in getting through this problem.
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (15 by maintainers)
Top Results From Across the Web
Spring Cloud Stream Kafka Binder Reference Guide
When true, the destination is treated as a regular expression Pattern used to match topic names by the broker. When true, topics are...
Read more >spring-cloud/spring-cloud-stream - Gitter
Hello, I'm using spring cloud stream Kafka binder 3.1.0, and I'm facing a behaviour that I don't know if it's normal or not....
Read more >Spring Boot application using the Spring Cloud Stream Kafka ...
Now I can't see any exception but the messages don't get to the topic. In another application that only uses the kafka binder...
Read more >39. Apache Kafka Binder - Spring Cloud Reference
When true, the destination is treated as a regular expression Pattern used to match topic names by the broker. When true, topics are...
Read more >Streaming with Spring Cloud Stream and Apache Kafka
We'll also venture into seeing how the new functional programming model in Spring Cloud Stream makes it easier to write Kafka- and Kafka ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@jitendradpatel Created a sample demonstrating this feature here. Please take a look. I am closing this issue. Feel free to re-open if you still encounter issues or if you can reproduce the issues using the sample I mentioned.
@sobychacko Looks like a problem with the binder. Maybe the
max.metadata.age.msproperty is not being set?This works fine for me…
Started with no matching topics, then added
my.foo…