-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 diffChangeLog generation is broken in 1.7.1 #11692
Comments
Can you please provide a minimal reproducer? Thanks |
I think the issue is similar to #11679 (on Zulip, the OP had the same exception IIRC) |
And we have a reproducer there but another one might be helpful. |
@geoand It is a problem with a quarkus-hibernate-validator. If i downgrade version to 1.6.1.Final then command work. Small reproducer with one model and h2 in-memory datasource. ./mvnw clean install liquibase:diff @gsmet And it's breakage of 1.7.1 version only, quarkus-hibernate-validator 1.7.0 works too. |
I also found the error like this. 1.7.0 works well but 1.7.1 doesn't work well.
I use above in Unit test. |
Thanks for reporting. I'll have a look soon |
It turns out that different behavior between Basically what happens is that because that commit added the This use case is not something we ever supported and the fact that it used to work is pure coincidence IMHO. Since I am no Hibernate expert, I'll hand this one over to @gsmet and @Sanne |
It's going to be fixed in 1.7.2 but keep in mind that we don't support creating EMF manually. You lose most of Hibernate ORM Quarkus optimizations by creating the EMF manually. And there's a good chance it won't work at all or work differently (except if you carefully apply all the settings applied by Quarkus). |
Ok, thank you, unfortunately liquibase-hibernate does not support quarkus, only spring and pu from dedicated xml. And as i know we do not have any analogs in the market now for generate migrations automaticaly. |
Describe the bug
I use hibernate-liquibase as a plugin for maven or as a plugin in command-line. In both variants fail in 1.7 but work in 1.6.1.
Unexpected error running Liquibase: Duplicate event listener found
liquibase.exception.DatabaseException: org.hibernate.event.service.spi.EventListenerRegistrationException: Duplicate event listener found.
It's like some events now is auto registered.
Expected behavior
Generate something.
Actual behavior
Exception.
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
java -version
: openjdk version "11.0.7" 2020-04-14mvnw --version
orgradlew --version
): 3.6.3The text was updated successfully, but these errors were encountered: