question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overriding "(consumer|producer)Properties.bootstrap.servers" should be prohibited

See original GitHub issue

I was trying to configure the consumers to read from a mirrored cluster but when I change the consumer bootstrap broker I get A list of partitions must be provided error.

I’m basically using the following configuration:

spring.cloud.stream.kafka.binder.brokers=${KAFKA_HOSTS}
spring.cloud.stream.kafka.binder.consumerProperties.bootstrap.servers=${KAFKA_CONSUMER_HOSTS}

If I don’t set spring.cloud.stream.kafka.binder.consumerProperties.bootstrap.servers everything works fine.

Am I missing something?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
garyrussellcommented, Apr 2, 2020

@sobychacko I reopened the issue and changed the title; it is assigned to me.

We should detect an attempt to override the broker at the consumer/producer level and reject such configuration.

0reactions
thspintocommented, Apr 1, 2020

Thanks for the reference @sobychacko. It worked as expected.

Why did you reopen the issue? To address what Gary suggested?

That’s right. I closed the issue incorrectly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring boot spring.kafka.bootstrap-servers not getting picked ...
I know I can manually pass the properties into a DefaultKafkaConsumerFactory bean but I was hoping Spring Boot could handle that automatically.
Read more >
kafka nodes - Forums - IBM Support
Hi, I am usin the new kafka producer and consumer nodes in IIB flow and I need ... You can override the value...
Read more >
How to configure or override default Kafka Producer or ...
If it is required to override those default values, you can specify them as additional properties under bootstrap servers in the configuration.
Read more >
Kafka Topic Management | Kafka Documentation - Instaclustr
The following command will change the min.insync.replicas property value for this topic and override the default min.insync.replicas value of the broker.
Read more >
Confluent Replicator Configuration Properties
The client will use all servers, irrespective of which servers are designated here for bootstrapping.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found