I have a strange behavior with a Spring Boot project using Liquibase and deployed on AWS Elastic Beanstalk. The same project works correctly on my local machine.
below are some logs. You can see that everything starts fine but then on “SELECT * FROM xxx.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC”, there is pause of 17 seconds and the application restarts, and it restarts, and it restarts, …
|2020-11-25T10:37:41.170-05:00|INFO | liquibase.executor.jvm.JdbcExecutor | info | SELECT COUNT(*) FROM xxx.DATABASECHANGELOG|
|2020-11-25T10:37:41.175-05:00|INFO | liquibase.changelog.StandardChangeLogHistoryService | info | Reading from xxx.DATABASECHANGELOG|
|2020-11-25T10:37:41.176-05:00|INFO | liquibase.executor.jvm.JdbcExecutor | info | SELECT * FROM xxx.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC|
|2020-11-25T10:37:58.578-05:00|INFO | xxx | logStarting | Starting xxx on ip-172-33-10-198.us-east-2.compute.internal with PID 9196 (/var/app/current/lib/xxx.jar started by webapp in /var/app/current)|
|2020-11-25T10:37:58.580-05:00|DEBUG | xxx | logStarting | Running with Spring Boot v2.3.4.RELEASE, Spring v5.2.9.RELEASE|
Any idea what could be the problem ? If I set the “liquibase.enable” property to false then the application starts correctly. And as I said above, it works fine on my local machine with enable at true.