chenqi14 commented on issue #34068:
URL: 
https://github.com/apache/shardingsphere/issues/34068#issuecomment-3051739238

   The root cause of this issue lies in the shutdown mechanism of H2Database, 
which is controlled by the parameter DB_CLOSE_ON_EXIT. When this parameter is 
set to true, the database will be automatically closed when the JVM shuts down, 
and accessing the database through the application at this point will result in 
such an error.
   
   for H2Database versions < 2.2.222, the default value of DB_CLOSE_ON_EXIT is 
true; for versions >=2.2.222 , the default value of DB_CLOSE_ON_EXIT is false.
   
   The way to manually set this parameter is as follows: 
jdbc:h2:mem:config;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;DB_CLOSE_ON_EXIT=false;MODE=MySQL.


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

Reply via email to