linghengqian commented on issue #32765:
URL: 
https://github.com/apache/shardingsphere/issues/32765#issuecomment-2374469288

   - That being said, if you replace `com.alibaba.druid.pool.DruidDataSource` 
with `com.alibaba.druid.pool.DruidDataSource` in 
`src/test/resources/shardingsphere.yaml`, this problem does not exist.😅The 
logic of Druid actively closing connections was introduced through 
https://github.com/alibaba/druid/commit/882470b1ce7a51a94f3525beceec91384ccd425f
 . At least the Spring Boot community and the Flyway community believe that 
HikariCP's processing is more intuitive.
   - See 
https://github.com/alibaba/druid/blob/1.2.23/core/src/main/java/com/alibaba/druid/pool/DruidDataSource.java#L1937
 .
   ```java
   if ((!conn.closed) && !conn.disable) {
                   conn.disable(error);
                   requireDiscard = true;
   }
   ```


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