1

I have two applications needs to be deployed at same time. Both having some common code, which is in another repo. In that common repo i have liquibase file. When i start the applictaions with time gap this liquibase is executing and not causing any issue. But I am facing a issue, when two applications started same time, Getting exceptions.

My doubt is it possible to execute same liquibase at same time with different applications? Data base is same. And this should be done without doing any manual changes, like deleting record from changelog table manually.

The exception am getting is as follows

Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum FLIGHT-DB-CHANGELOG-SCRIPT-SDT-845.XML-v1-dev::31-10-2022-IGE-6388::.....@.......com is now: 7:27d219f2f30604542a4a458c891cdbc7

Please help me out. Thank you

Praveen kumar
  • 90
  • 2
  • 7
  • That is particular changeset issue, would you mind providing it's text? – Andrey B. Panfilov Nov 02 '22 at 02:43
  • @AndreyB.Panfilov in that I have written a select query that's it. This issue came when i deployed two applications at same time. Can you please tell me Is it possible deploy two applications with same liquibase with same changeset at same time? – Praveen kumar Nov 02 '22 at 05:06
  • The concurrency (Liquibase handles concurrent database changes by using the databasechangeloglock and running the changes serially) should not allow for both to be executed at the same time. * https://docs.liquibase.com/concepts/tracking-tables/databasechangeloglock-table.html?Highlight=changeloglock – tabbyfoo Nov 02 '22 at 15:35

0 Answers0