Skip to content

Add a timeout for per-connection keyspace setup #1686

@dkropachev

Description

@dkropachev

The keyspace setup step for a newly opened connection has no timeout.

Code permalink:

// TODO: There should be a timeout for this

If the server accepts the connection but never replies to the keyspace setup request, the future can remain in the ready-connection set indefinitely. While the pool thinks filling is still in progress, it can stop scheduling further refills, including leaving an empty pool stuck initializing.

Suggested direction: apply a setup timeout to the keyspace request and treat timeout as a connection setup failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-assistedarea/connectingOpening new connections, managing connection pool.bugSomething isn't workinggood first issueGood for newcomers

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions