You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: query timeout on a tab session takes ~11s #925
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
fix: keep results on timeout; restore and startup bugs (#926)