Skip to content

fix: query timeout on a tab session takes ~11s #925

Closed

Description

@EVWorth

On the editor-session and agent routes, the query timeout sends KILL QUERY through that route's own pool. The statement that timed out holds the pool's only connection, so the KILL waits for the pool's acquire timeout and then fails. A 1 s query timeout on BEGIN; SELECT SLEEP(5) in an editor tab took about 11 s on both MySQL 8 and MariaDB 11.

Fix

Send the KILL through the shared interactive pool (connection_manager.get_pool()), as cancel() already does. The live test a_timeout_on_a_session_reports_the_open_transaction fails without the change.

Related, not fixed

Both this timeout KILL and cancel() go through the shared interactive pool. If that pool is full, the KILL still waits for its acquire timeout. A dedicated connection for kills would avoid that.

Activity

  1. added
    bug
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions