-
Notifications
You must be signed in to change notification settings - Fork 645
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
docker:start always blocks on windows #1103
Comments
I suspect that there is an issue with the wait condition. What happens if you remove wait ? Does it still block ? And what is, if you loosen the condition to e.g. not use a regexp ? Does this change anything ? Debugging on Windows is difficult for me as I don't have a installation at hand. But it could be that the log parsing works differently on Windows. It would also help if you could run it with |
Hi, running the 0.24 version fixed my problem. Looks like #904 was lost in 0.25 and upwards. |
#904 was partly changed in #965 because of a regression this fix introduced. So I think both fixes need to be combined but I have no idea yet, how (to far away from that code at the moment). Maybe @FSeidinger and @rkhmelichek have an idea what the issue is ? |
0.24 didn't fix hanging from run for me unfortunately.
the process executes and I get a "Waited on exit code 0 58700 ms" at the end, but then it just hangs forever. |
Got some time to experiment with this: I created a small project with the setup described in the ticket here (https://github.com/SimY4/ImmutablesDynamoDBMapperPOC) and collected some thread dumps. The interesting part is this one:
This thread is spinning infinitely attempting to close the file channel. I found something looking very similar in JDK bug tracker reported a while back but still open till this day: https://bugs.openjdk.java.net/browse/JDK-8132693 |
We also have this problem. 0.24 is working fine, 025.x not anymore and the problem is still present in the current latest version 0.36. |
@ncelerier : Would it be possible for you to debug this issue on Windows? |
Maybe, how can I debug that ? |
You can debug the build process using |
@ncelerier : Does |
Yes it looks like it is working properly, I can make calls to my application and it behaves properly. But of course it would be better if you or someone else could confirm that it is still working properly. I'm not sure it does not introduce a regression. |
I'm on Linux and for me |
@ncelerier : Would you be needing a patch release with the fix? I was thinking of asking people in the issue to try out the patch release and get feedback before closing this issue. |
@rohanKanojia: yes if it is not a problem for you, a patch release would be good for me. |
@ncelerier : cool, I'll try to cut 0.36.1 tomorrow afternoon. Thanks a lot for your contribution 👍 |
I've released 0.36.1 with @ncelerier 's fix. @SimY4 @jeacott1 @ebouvi01: Could you please help us out by trying out 0.36.1 on windows and providing feedback on whether this issue is resolved or not whenever you have some time? If it's working we can go ahead and close this. |
@rohanKanojia looks like it's still getting stuck after successfully matching log condition for me. I'm using the latest Docker for Windows 3.5.1, my pet project where issue reproducible is https://github.com/SimY4/ImmutablesDynamoDBMapperPOC |
@ncelerier: Hello, Would it be possible for you to try out @SimY4 's sample on Windows whenever you get some time? |
@rohanKanojia: Hello, unfortunately, @SimY4 sample hangs for me too :( |
Unfortunately for me on Linux |
I have run Sim4Y sample in debug and I have found that Because of this, I wonder if we need to care about the Also, here is what I see when I add some logs
Then it hangs, so it seems there is a deadlock between these two. I tought maybe I can wait for the
With this change, it is not hanging anymore. But here is what I see in the logs:
Does that mean there is no need to call @rohanKanojia, what do you think ? Can you try with these changes on Linux ? |
@ncelerier : Do you have your branch somewhere which I can pull and test? |
Yes, I have just created the merge request. |
@ncelerier : Thanks a lot, I'll try to pull it and check after work later today. |
Description
Whenever I use docker:start on windows it's always blocking build execution although docker container was successfully started and wait condition satisfied.
I'm using the latest plugin version. I tried explicitly specify docker.follow=false - didn't help. The same config works fine with docker for OSX.
Info
mvn -v
) : 3.5.4My docker execution config looks like this:
then execution docker:start -X will show that waitcondition was met, execution returned 0 and then process hangs.
The text was updated successfully, but these errors were encountered: