Skip to content
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

Migrations Often Fail When liquibase.datasources.default.async: true #177

Open
JasonTypesCodes opened this issue Jul 16, 2021 · 2 comments
Labels
type: bug Something isn't working

Comments

@JasonTypesCodes
Copy link

When liquibase.datasources.default.async is true, migrations often (but not always) fail. Usually with an error referencing locks or a failure to transition to a state when another is still open. Something like:

Caused by: java.lang.RuntimeException: Cannot end scope omefbvcocj when currently at scope cnlydevtnl

For an example app, please see: https://github.com/JasonTypesCodes/mn-liquibase-259

Starting the app with ./gradlew run will likely illustrate the error. If your change liquibase.datasources.default.async to false, the issues go away.

Environment Information

  • Operating System: Debian 10
  • Micronaut Version: 2.5.9
  • JDK Version: 11.0.8

Example Application

https://github.com/JasonTypesCodes/mn-liquibase-259

JasonTypesCodes added a commit to jhipster/generator-jhipster-micronaut that referenced this issue Jul 16, 2021
@ilopmar
Copy link
Contributor

ilopmar commented Jul 21, 2021

TBH I think introducing the async migrations wasn't a good idea. I haven't seen this error before until I've tried to upgrade to Liquibase 4.4.x. Now a couple of tests fail (sometimes) with that error.

@ilopmar ilopmar added the type: bug Something isn't working label Jul 21, 2021
@TheoMuffin
Copy link

TheoMuffin commented Nov 18, 2021

I have the same problem using Micronaut v3.1.4. I need liquibase to run asynchronously because multirow inserts for lots of test data (divided into manageable changeset batches) take a long time to run and the microservice should be up and running quite a bit sooner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants