Skip to content

Why is zookeeper.connection.timeout.ms set? #286

Closed
@srdo

Description

@srdo

Hi,

EmbeddedKafka sets the zookeeper.connection.timeout.ms to 10 seconds. I was wondering what the point is of setting this config explicitly? According to the Kafka documentation, the connection timeout will follow the zookeeper.session.timeout.ms (default 18s) if you don't specify the connection timeout. It seems a little weird to only want to wait 10 seconds for a connection, but to be willing to wait 18 seconds between heartbeats before timing out the ZK session.

Would it make sense to not set zookeeper.connection.timeout.ms in EmbeddedKafka by default? That way, the two properties will have the same value by default.

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