I have spring boot application which have defined database migrations using liquibase.
When I start application script wait 500s and check http status of application. When it returns error code script kills application process and try to start application again.
Application is killed during starting sometimes and liquibase don't remove records from databasechangeloglock
. When application runs next time it wait for release lock, but it doesn't happen and application is killed again and again.
In logs last lines from each application are:
liquibase : Waiting for changelog lock....
liquibase : Waiting for changelog lock....
Do you have any ideas how to solve this problem inside script?