-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
2.13.0.Final: Flyway Migration checksum mismatch #28301
Comments
/cc @cristhiank, @evanchooly, @gastaldi, @geoand, @gsmet |
When I run migrations from the start again, I actually get a flyway schema history that is valid and works with 1.13.0.Final and thus I'm not able to create my broken database again (=> cannot provide a reproducer :( ). However, it looks like the schema of the "broken" and the "correct" database are the same. Anyways, I think Flyway is actually ok. However, I wonder why it didn't notice the problem before? And the ClassNotFoundException are maybe also something to look into? |
@aloubyansky I wonder if the issue could be related to us removing the bootstrap transitive dependencies? Could it be that we haven't totally restored the existing behavior in Gradle? |
Ah wait. We have a Maven exception around here which doesn't look like something we want (or we would have to also add the Maven model to Gradle). |
@andreas-eberle did you |
@aloubyansky I think it is a valid issue because of this: We actually have Maven classes around in there. I think we should get rid of them and have a copy of this specific |
I noticed the same thing on my project, flyway started to validate checksums in quarkus 2.13. |
@rmanibus any chance you could write something that I could include in the migration guide? |
The Maven classes won't be available in a Gradle environment. Also install forbiddenapis to make sure they don't come back. Relates to quarkusio#28301
#28318 should fix the |
@gsmet of course, my analysis is that after this commit: a936ad0 quarkus.flyway.validate-on-migrate is now activated by default. So I would write the following in the migration guide: quarkus.flyway.validate-on-migrate is now enabled by default, which will cause the deployment to fail if you have modified migrations after they have been applied. |
@gsmet also, I have a regression on 2.13.0 on my application, it is something related to request context. do you know if something changed in this release ? I want to create an issue for it but I'm not sure what the problem is. I did not manage to reproduce this in a blank project. |
@rmanibus yes, there was a lot of work done on the contexts. I think we will really need a reproducer to understand what's going on. But first, maybe create a specific issue and explain what's going wrong. |
I added the entry in the migration guide, thanks @rmanibus . I also fixed the CNFE for 2.13.1.Final so all should be good. Closing. |
@gsmet ok good to know, I will create the issue thanks ! |
The Maven classes won't be available in a Gradle environment. Also install forbiddenapis to make sure they don't come back. Relates to quarkusio#28301 (cherry picked from commit 49b2352)
The Maven classes won't be available in a Gradle environment. Also install forbiddenapis to make sure they don't come back. Relates to quarkusio#28301
The Maven classes won't be available in a Gradle environment. Also install forbiddenapis to make sure they don't come back. Relates to quarkusio#28301
The Maven classes won't be available in a Gradle environment. Also install forbiddenapis to make sure they don't come back. Relates to quarkusio#28301
The Maven classes won't be available in a Gradle environment. Also install forbiddenapis to make sure they don't come back. Relates to quarkusio#28301
The Maven classes won't be available in a Gradle environment. Also install forbiddenapis to make sure they don't come back. Relates to quarkusio#28301
Describe the bug
I just updated my service from Quarkus 1.12.3.Final to 1.13.0.Final and now it crashes (no other changes) during startup due to the following Flyway error:
Validate failed: Migrations have failed validation
.To be clear, no migration should be triggered. The database is already at the newest migration and the exact same service works with 1.12.3.Final.
Furthermore, I wonder if these
ClassNotFoundExceptions
are "normal" or "expected". They certainly look wrong.I'll try to create a reproducer later.
Expected behavior
Flyway should still work with the newer Quarkus version.
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
All my dependencies in the project:
The text was updated successfully, but these errors were encountered: