Skip to content

how to check connection before producer or consumer start. #705

Open
@hackrole

Description

@hackrole

Description

the errors was that, we have not install or run kafka in localhost, while I write a example to test
the producer and consumer, it still will block forever.
there maybe sometime as we config the url error or forget to start the kafka server.
but the behavor above make it hard to discover or debug.

so I wonder if there any way to check the connnection for the producer and consumer before loop to poll or produce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequesting a feature changeinvestigate furtherIt's unclear what the issue is at this time but there is enough interest to look into itpriority:highMaintainer triage tag for indicating high impact or criticality issuesquestionA question about how to use or about expected behavior of the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions