-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Question: how to fail fast on bad DB password #32
Comments
That is correct. Sent from my iPhone
|
I'll investigate a way to fail the pool fast. Likely it will be via a RuntimeException thrown from the constructor ... but will require that the minimum pool size is non-zero. |
If you instantiate your DataSource programmatically, you could use the raw driver DataSource to do the getConnection() check. e.g.:
But I guess that won't help if you do this the declarative way. |
The recently released HikariCP 1.2.9 has a new property |
Hi,
If my HikariCP config has the wrong database credentials, I'd like my server to fail fast.
Seems like the only way is to wait for acquireRetries * acquireRetryDelay milliseconds, then try to call getConnection(), catch the SQLException and then exit.
Do I have that right?
Thanks,
Mark
The text was updated successfully, but these errors were encountered: