Skip to content

Kafka Streams auto-configuration should only configure default streams builder #16329

@garyrussell

Description

@garyrussell

KafkaStreamsAnnotationDrivenConfiguration

	@Bean
	public KafkaStreamsFactoryBeanConfigurer kafkaStreamsFactoryBeanConfigurer(
			StreamsBuilderFactoryBean factoryBean) {
		return new KafkaStreamsFactoryBeanConfigurer(this.properties, factoryBean);
	}

This blows up if there are multiple factory beans. Consider making it an ObjectProvider and getIfUnique() (or resolve in some other way).

2 people have reported this issue recently on Stack Overflow and today.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions