yujun777 opened a new pull request, #63884:
URL: https://github.com/apache/doris/pull/63884

   ### What problem does this PR solve?
   
   `COM_RESET_CONNECTION` only reset the default catalog and catalog database 
cache, so session-scoped variables such as `sql_select_limit` could leak into 
the next logical connection when clients reused the same physical connection.
   
   ### What is changed?
   
   - Reset session variables, user variables, prepared statements, running 
query state, catalog/database state, and returned row count on 
`COM_RESET_CONNECTION`.
   - Reapply user-level default `query_timeout` and `insert_timeout` after 
rebuilding `SessionVariable`.
   - Add a regression test helper that sends `COM_RESET_CONNECTION` directly 
through the MySQL protocol.
   - Add a regression case for `sql_select_limit = 0` being cleared after reset 
connection.
   
   ### Check List
   
   - [x] FE UT: `ConnectContextTest`
   - [x] Regression: `test_reset_connection_session_variable`
   


-- 
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