confluent-kafka-go icon indicating copy to clipboard operation
confluent-kafka-go copied to clipboard

No error when bootstrap.servers is invalid

Open dstrelau opened this issue 1 year ago • 0 comments

Description

I accidentally passed "bootstrap.servers": "" to kafka.NewConsumer. I expected something would return an error with this misconfiguration. Nothing did.

How to reproduce

Take the example from the README and change bootstrap.servers to be "". Capture the error from SubscribeTopics for good measure, and you get this.

I'd expect something in here to return an error, either NewConsumer or SubscribeTopics or ReadMessage.

Checklist

confluent-kafka-go/v2 v2.1.1

I don't believe anything else here is relevant, but let me know if you'd like me to provide any more detail.

Please provide the following information:

  • [X] confluent-kafka-go and librdkafka version (LibraryVersion()):
  • [ ] Apache Kafka broker version:
  • [ ] Client configuration: ConfigMap{...}
  • [ ] Operating system:
  • [ ] Provide client logs (with "debug": ".." as necessary)
  • [ ] Provide broker log excerpts
  • [ ] Critical issue

dstrelau avatar Jun 05 '23 22:06 dstrelau