rhh777 opened a new issue, #4881:
URL: https://github.com/apache/kyuubi/issues/4881

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### What would you like to be improved?
   
   When the kyuubi.engine.jdbc.connection.url specified database does not 
exist, the Client will receive a **java.sql.SQLSyntaxErrorException: Unknown 
database 'ddddd'**, but the JDBCEngine process does not exit. Subsequent Client 
connections will still be sent to the JDBCEngine, but will not be successful, 
even if the change to the correct database name, because JDBCEngine will only 
read the parameters passed in when the process startedThis causes the 
JDBCEngine to be unavailable until the timeout is destroyed.
   
   My beeline parameters
   ```
   ./beeline -u 'jdbc:kyuubi://localhost:10009/default;#
   
kyuubi.engine.type=jdbc;kyuubi.engine.jdbc.connection.url=jdbc:mysql://localhost:13306/ddddd;
   kyuubi.engine.jdbc.connection.user=root;
   kyuubi.engine.jdbc.connection.password=root;
   kyuubi.engine.jdbc.driver.class=com.mysql.cj.jdbc.Driver;
   
kyuubi.engine.jdbc.extra.classpath=/Users/hrh/.m2/repository/mysql/mysql-connector-java/8.0.13/mysql-connector-java-8.0.13.jar;
   kyuubi.engine.jdbc.connection.provider=DorisConnectionProvider;
   kyuubi.engine.jdbc.type=doris'
   ```
   <img width="2222" alt="image" 
src="https://github.com/apache/kyuubi/assets/41908930/6d7b3d9b-5a5f-494e-b191-1806b0f4ad7f";>
   
   
   ### How should we improve?
   
   Can we determine at JDBCSession.close that if the sessionConnection is not 
initialized successfully, the process exits
   
   
https://github.com/apache/kyuubi/blob/master/externals/kyuubi-jdbc-engine/src/main/scala/org/apache/kyuubi/engine/jdbc/session/JdbcSessionImpl.scala#L76
   
   ### Are you willing to submit PR?
   
   - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to improve.
   - [ ] No. I cannot submit a PR at this time.


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