Skip to content

Erroneous Connection does not fail #1048

@bongolegend

Description

@bongolegend

Description

When I initialize a new consumer, if I pass an erroneous connection string via bootstrap.servers, I don't get an error. I would expect to get an error; if not at initialization, then upon poll.

How to reproduce

confluent-kafka == ('1.4.2', 17039872)
librdkafka == ('1.4.2', 17040127)

MacOS 11.1 (big sur)

import confluent_kafka as ck
config = {'bootstrap.servers': 'fake', 'group.id': 'fake'}
con = ck.Consumer(**config)
con.subscribe(['nonexistant-topic'])
con.poll(timeout=0.1)

Checklist

Please provide the following information:

  • [ x] confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()):
  • Apache Kafka broker version:
  • [ x] Client configuration: {...}
  • [ x] Operating system:
  • Provide client logs (with 'debug': '..' as necessary)
  • Provide broker log excerpts
  • Critical issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy