-
Notifications
You must be signed in to change notification settings - Fork 101
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
Please confirm compatibility with Spring Boot 2.2 #491
Comments
I tried Spring Boot
It doesn't happen with |
But this is |
2.2 forks the process by default so that could be the reason. I don't really understand what you mean by "not stopping the server". Have you configured @denis-anisimov Spring Boot is related to this plugin and the version must match the Spring Boot version you're using. |
Ah, thanks for info. Good to know. |
@snicoll I didn't say "not stopping the server" :). I'm saying "It doesn't shut down the Java process properly and the port 9001 is kept busy". Here is how we configure the plugin: https://github.com/vaadin/skeleton-starter-flow-spring/blob/master/pom.xml#L190 BTW, I just noticed that I provided an incorrect link to the start project. I fixed it. |
How can I reproduce? |
I applied the required changes in a sample project here. So, with the following steps, you can reproduce it.
And now, if you run |
Thanks for the sample. The application does not seem to shutdown properly and I don't know yet if there is something we should/can do in the plugin itself. Looking at your sample and the app that is still running after the first execution, I can see this
If I kill the process with
I strongly suspect that's related to the problem as I can see the same logging at the very end of the Maven build if I disable forking.
The only reason you see this with 2.2 is that we've decided to enable forking by default. You can restore the behaviour in 2.1 by configuring the <execution>
<id>start-spring-boot</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<fork>false</fork>
</configuration>
</execution> |
We have the same problem also when the Java process is killed by Eclipse: vaadin/flow#6291. It looks like JVM shutdown hooks are not run. We will most likely fix this on our end by making the webpack process detect that the Java process is no longer around and then terminate itself. |
vaadin/flow#6291 has been fixed. But, the problem still exists and can be reproduced by the instructions mentioned here. |
Allows the Java process to terminate with Spring Boot 2.2 Related to vaadin/spring#491
Seems like this is indeed the opposite of vaadin/flow#6291. In this case, it's the java process that keeps itself alive waiting for the webpack process. Starting |
@Legioth You're right. You have fixed the problem. |
@mehdi-vaadin as far as I understand, we're all good now? Is there a CI build with the latest milestone and/or 2.2 snapshot that confirms the current release is working with Spring Boot 2.2? |
@snicoll The CI build has been failed. I'm on it right now. |
Allows the Java process to terminate with Spring Boot 2.2 Related to vaadin/spring#491
Allows the Java process to terminate with Spring Boot 2.2 Related to vaadin/spring#491 (cherry picked from commit 9236814)
Allows the Java process to terminate with Spring Boot 2.2 Related to vaadin/spring#491 (cherry picked from commit 9236814)
The CI build is green. So, I can confirm that Vaadin is now compatible with Spring Boot 2.2. |
Thanks for letting us know. I've removed the restriction and this should be available again once the build completes. |
We're heading towards an RC1 of Spring Boot 2.2 soon, followed by GA in Q4. Can you please confirm full compatibility of the starter with Spring Boot 2.2?
As soon as we hear from you, we can enable the starter again on start.spring.io, see spring-io/start.spring.io#266
Thanks!
The text was updated successfully, but these errors were encountered: