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
Updating of properties not recognized #1114
Comments
@du-it You're doing it right, however, the new value will not be picked up until the housekeeper thread runs. The housekeeper thread runs every 30 seconds. So, in the best case your change will be picked up immediately, on average your change will be picked up in 15 seconds, and at worst your change will be picked up in 30 seconds (if the housekeeper ran just before your change). I have added an additional MBean test to verify that changing the |
The lines
are unreachable, aren't they!? ;-) |
You are correct, those lines are unreachable; left over from a refactor. |
Environment
Have you searched the CLOSED issues already? How about checking stackoverflow?
--> Yes!
I tried to modify the connectionTimeout property. I am allowed to set this value and I checked that using the appropriate getter for this property.
I changed it from the default of 30 seconds to 10 second.
According to https://github.com/brettwooldridge/HikariCP/blob/dev/src/main/java/com/zaxxer/hikari/HikariConfig.java#L64 this property IS changeable.
I tried to set the property via HikariPoolMXBean and via HikariConfiogMXBean but the value stays at 30 seconds.
I tested that by obtaining all connections from the pool and then getting one further.
Some test output...
Here's the exception:
So, how can i modify Hikari properties at runtime...effectively?
The text was updated successfully, but these errors were encountered: