Skip to content

Allow configuring request timeout on Schema Registry client #622

Closed
@m-burst

Description

@m-burst

This is a feature request.

We have encountered a problem in production. Our Kafka ops were doing some maintenance of the cluster, during which a HTTP request to schema registry hung for some reason, and the whole consumer hung with it. We had to go through a lot of pain to abort the request without restarting the whole app.

Inspecting the source code, I've noticed that there is no request timeout in the CachedSchemaRegistryClient in its calls to requests. My proposal is to allow configuring the timeout and expose it as a configuration parameter in AvroProducer and AvroConsumer.

If you agree that this should be implemented, I can try to implement it myself.

Yours,
Mikhail

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions