Skip to content

Closed connections are not refreshed in client.py _send #1118

@requiel20

Description

@requiel20

Describe the bug
_get_conn refreshes closed connections but _send doesn't use _get_conn so it will try to send data over a connections that got closed e.g. due to being idle for too long.

This results in

Error sending OffsetCommitRequest_v2 to node 11 [KafkaConnectionError: Connection at ... closed] -- marking coordinator dead

for our use case.

Expected behaviour
_send should refresh closed connections

Environment

  • aiokafka version 0.12.0

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