cxzl25 opened a new pull request, #7811:
URL: https://github.com/apache/kyuubi/pull/7811

   ### Why are the changes needed?
   When a query timeout is set (via client `queryTimeout` or 
`kyuubi.operation.query.timeout`), the JDBC engine's timeout monitor calls 
`ExecuteStatement.cleanup(TIMEOUT)`, which only calls `Statement.close()` on 
the running JDBC statement. #7248 only cancels the statement on `CANCELED`.
   
   ### How was this patch tested?
   Added UT `JDBC ExecuteStatement timeout should kill SQL statement` for MySQL 
and StarRocks: execute `SELECT sleep(120)` with `queryTimeout=3`, wait for 
`TIMEDOUT_STATE`, then `CloseOperation` should succeed within 20 seconds.
   
   
   ### Was this patch assisted by generative AI tooling?
   Assisted-by: Claude:claude-opus-5-5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to