spring-cloud-commons
spring-cloud-commons copied to clipboard
HirakAri shutdown in Refresh endpoint
Describe the bug We are using spring boot 2.7.0 , spring batch 4.3.6 and hikari 4.0.3 .
Our batch application is used to migrate data from ORACLE DB to POSTGRES DB and we are using @Refreshscope to update both DB credentials.
So when ever the refresh endpoint invoked , Hikari is shutting down even then batch job is in progress .
I tried various work around 1. Graceful Shutdown 2. refreshable property , but nothing seems to be working.
Sample If possible, please provide a test case or sample application that reproduces the problem. This makes it much easier for us to diagnose the problem and to verify that we have fixed it.