Reputation: 895
I am using spring-cloud-starter-stream-kafka and spring-cloud-stream jars for kafka in the spring boot application.
The version of the jar is 1.1.1.RELEASE and we are creating producer named as Test. For the same following is application.yml file.
spring.boot.cloud.stream.bindings.output:
destination: Test
content-type: application/octet-stream
producer:
headerMode: raw
requiredGroups: testConsumerGroup
The problem is sometimes when we run the application in docker(using docker-compose) instead of creating Test topic, it is creating "output" as a topic. For kafka I am using wurstmeister/kafka(Tag 0.9.0.1-1) image and wurstmeister/zookeeper. Tried updating the properties but it is not working.
Update: After the debugging get to know that bindingServiceProperties does not hold the bindings and hence spring cloud stream is creating topic as "output"
Upvotes: 1
Views: 498
Reputation: 895
It looks like this version of the library has the bug. So, Updated the version of the library and now its working fine.
Upvotes: 0