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
Document that graceful shutdown may not work from IDEs #22959
Comments
@pdeva Do you have active connections at the time you're shutting down? I believe that 10s is the max timeout, rather than a minimum. |
yes i do. |
Does it work if you run 'java -jar' from a terminal and exit with ctrl-c? I wonder if your IDE is sending a different signal or terminating the process in a different way? |
ok. doing ctrl+c outside of IDE does work.
|
See #21557 for details of that annoying NPE. |
I'll make this a documentation issue to note that graceful shutdown may not work from IDEs |
It would be nice to narrow down which IDEs are affected. It works fine for me with IntelliJ IDEA. |
That's very strange. The attached video looks like it is IntelliJ. @pdeva What version are you using? |
latest intellij. 2020.2 |
@pdeva so am I and I actually have a very similar demo for a talk I am preparing. There is something very odd in your video though. When you initiate the request to shutdown the app, you should see something like this:
I think we need to take a step back and understand a bit more what doesn't work for you. Please share a small sample that allows us to reproduce the steps in your video. It can be a zip attached to this issue or a link to a GitHub repo. |
this probably explains it. stop button in intellij works differently on different platforms. |
I have the following in my
application.properties
file.Yet, there is no 10s wait period when i try to kill the process.
Using spring boot 2.3.1.RELEASE
The text was updated successfully, but these errors were encountered: