-
Notifications
You must be signed in to change notification settings - Fork 7
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
Tests hangs on "process has not exited" on Windows 11 #47
Comments
@prondzyn do you have some more logging/stacktrace? |
Unfortunately I do not have nothing particular. Additionally, we tested the same on other Windows 11 machine and there the problem does not occur :/ Everything works correctly there. So the problem is probably my machine-specific. So I think we can close the issue. But it is worth to be aware that is some (unknown) circumstances the problem can occur. |
@prondzyn .. stopping processes on windows is tricky.. thats why i try to avoid to kill the process but shutdown the mongodb instead.. but if this fails, than there will be some problems.. so if you have such a case and some more logging i would be glad to see these.. |
FWIW, we have been consistently seeing this behavior on GitHub Actions Windows (and only Windows) when we tried to update to MongoDB 7. It's deep in the middle of the Quarkus build (which is massive). Changes is there in case it helps: https://github.com/quarkusio/quarkus/pull/45160/files . And the log is the following:
We have something dumping the pending threads when things are stalled but I don't see anything useful, except Surefire waiting for some output. |
We are migrating our application from Spring Boot 2.x to 3.x. So we upgraded embed mongo from:
to:
Then we are running
mvn clean test
then.Tests are running without any problems on Linux machines.
But Windows (tested on Windows 11) users have a problem. Running hands on:
and does not move forward.
Workaround
I've found a workaround. I can run the
mvn clean test
as administrator, so then everything moves smoothly.What is the real solution?
Workaround is good for a short term, but I do not understand why user which is creating process cannot exit them.
Did anyone faced similar issue working on Windows?
The text was updated successfully, but these errors were encountered: