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

Liquibase failing dbms-type pre-condition in native build #13839

Closed
joggeli34 opened this issue Dec 11, 2020 · 2 comments · Fixed by #13843
Closed

Liquibase failing dbms-type pre-condition in native build #13839

joggeli34 opened this issue Dec 11, 2020 · 2 comments · Fixed by #13843
Assignees
Labels
area/liquibase kind/bug Something isn't working
Milestone

Comments

@joggeli34
Copy link
Contributor

Describe the bug

I have a liquibase script with a precondition on the dbms type:

<preConditions>
   <dbms type="postgresql,h2"/>
</preConditions>

When runing on a JVM it works correctly. When running as native build, following error is thrown:

Dec 11, 2020 1:29:31 PM liquibase.changelog
INFO: Reading from qumearecording.databasechangelog
Dec 11, 2020 1:29:31 PM io.quarkus.runtime.ApplicationLifecycleManager run
ERROR: Failed to start application (with profile prod)
liquibase.exception.ValidationFailedException: Validation Failed:
     1 preconditions failed
     db/changeLog.xml : DBMS Precondition failed: expected null, got postgresql

        at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:298)
        at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:274)
        at liquibase.Liquibase.validate(Liquibase.java:2154)
        at io.quarkus.liquibase.runtime.LiquibaseRecorder.doStartActions(LiquibaseRecorder.java:48)
        at io.quarkus.deployment.steps.LiquibaseProcessor$createBeansAndStartActions-960013254.deploy_0(LiquibaseProcessor$createBeansAndStartActions-960013254.zig:80)
        at io.quarkus.deployment.steps.LiquibaseProcessor$createBeansAndStartActions-960013254.deploy(LiquibaseProcessor$createBeansAndStartActions-960013254.zig:40)
        at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:455)
        at io.quarkus.runtime.Application.start(Application.java:90)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:96)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:62)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:104)
        at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)

I also tested that the dbms attribute on the changeSet is working correctly.

To Reproduce

Run a project with contains a liquibase native.

Environment:

  • Quarkus version: 1.10.3.Final
@joggeli34 joggeli34 added the kind/bug Something isn't working label Dec 11, 2020
@ghost ghost added the area/liquibase label Dec 11, 2020
@ghost
Copy link

ghost commented Dec 11, 2020

/cc @andrejpetras, @geoand, @gsmet

@machi1990
Copy link
Member

I'll have a look.

@machi1990 machi1990 self-assigned this Dec 11, 2020
machi1990 added a commit to machi1990/quarkus that referenced this issue Dec 11, 2020
machi1990 added a commit to machi1990/quarkus that referenced this issue Dec 11, 2020
machi1990 added a commit to machi1990/quarkus that referenced this issue Dec 11, 2020
@ghost ghost added this to the 1.11 - master milestone Dec 13, 2020
@gsmet gsmet modified the milestones: 1.11 - master, 1.10.4.Final Dec 14, 2020
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 14, 2020
cemnura pushed a commit to cemnura/quarkus that referenced this issue Dec 22, 2020
renegrob pushed a commit to renegrob/quarkus that referenced this issue Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/liquibase kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants