The SqlException thrown by druid cannot be captured

druid may throw SqlException when creating a connection, but cannot capture

clipboard.png

clipboard.png

Mar.31,2022

I had the same problem, and it felt like Druid released the connection after an exception. At first I thought it was my code, but I just changed it to C3P0 after two days.

< hr >

the editor is the owner of Subscription account's "code craftsman's notes". He has worked for ThoughtWorks, Alibaba and other Internet companies to share his experience, including but not limited to JAVA, concurrent programming, performance optimization, architecture design, Mini Program, open source software, etc. If you are interested, you can follow the wave, study and discuss together.


has the landlord solved the problem


druidDataSource.setFailFast (true);

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-16de788-88e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-16de788-88e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?