-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retain NextException #719
Comments
@nitincchauhan Agreed on |
please nullify after successful isConnectionAlive too, just like newConnection(). otherwise getConnection() may report 'stale' exception and it can not be used to distinguish as pool exhausted or db problem once set in isConnectionAlive() for one bad connection, even if pool is exhausted, it would carry same exception till pool adds new connection. Also, probably setting nextException is redundant and polluting logs because 'cause is set as nextException' anyway. printing exception also prints cause, as ...caused by... |
…ccessful dataSource.getConnection() call.
…ccessful dataSource.getConnection() call.
two changes:
see http://stackoverflow.com/questions/39479345/how-do-i-know-if-my-hikaricp-pool-is-really-exhausted-when-sqltransientconnectio
The text was updated successfully, but these errors were encountered: