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
Circular reference with TaskRepositoryDatabaseInitializerDetector when native compile #880
Comments
For reference, the log to the issue is the following:
|
The The The root cause of this issue is that the I think the root cause needs to be addressed in Spring Boot as the For the upcoming release of Spring Cloud Task, a possible workaround is to change the order of |
@hpoettker Thank you for the fantastic writeup. I'll work with the boot team on this issue. In the meantime I'll bump TaskRepositoryDatabaseInitializerDetector up by one until they resolve the issue. |
Thanks for the analysis, @hpoettker.
I'm not sure that this is true. The vast majority of detectors have an order of 0. I believe the only detector that doesn't is |
@wilkinsona Thanks for the feedback! And sorry for misphrasing. What I meant was that if the order is changed by 1, then it should have a unique order, which is good as a workaround. I completely agree that it's not totally clear what the right order is. I was also wondering whether it was really intended that spring-projects/spring-boot#26692 affected e.g. the Batch Initializer. |
Resolved with the following commit. 8c450c4 |
TaskRepositoryInitializer has a circular reference on DatabaseInitializerDetector when natively compiling.
Natively compile and run timestamp initializer displays the error.
The text was updated successfully, but these errors were encountered: