-
Notifications
You must be signed in to change notification settings - Fork 21
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
Random infinite updates on startup #17
Comments
Also it feels related: sometimes same project fails to start with the following:
|
Here's what seems to happen:
So it appears it is not a micronaut-flyway issue to begin with. |
@lightoze Thannks for the detailed explanation. It's pretty much what I discovered when debugging #11. It seems a Micronaut issue. @graemerocher @jameskleeh thoughts? |
@ilopmar I created a PR to break the loop in |
Yeah for Micronaut 2 we plan to change the condition API. It is not safe currently to call getBean from a condition as it can lead to overlapping updates as it bypasses the resolution context |
We just ran into the same issue, but for us it just repeatedly crashes. It's a docker container that we run in OpenShift and the container crashes on each restart. While writing the bug report I found out that we don't include the micronaut-flyway dependency with the compile scope, could this be an issue? What's even stranger is the fact that we just reordered the maven dependencies and now the app is working again. Here is our stack trace from initial start to crash. It crashed about 1400 times by now. stack trace
mvn dependency:list
|
A potential fix for this was merged in core 4 days ago and it will be included in Micronaut 2.0.1: micronaut-projects/micronaut-core#3632. |
It may be the same as #11 but I don't have Hibernate, although Spring transactions are in use. Sometimes it keeps running Flyway migrations until JDBC pool runs out of connections. I've put a breakpoint at
DatabaseFactory.createDatabase
in Flyway which produced the following two stack traces (for you to compare):Stacktrace 1
Stacktrace 2
The text was updated successfully, but these errors were encountered: