-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Intermittent start failure due to "Text file busy" #246
Comments
@wilkinsona as far as I know "Text file busy" is triggered when another process does access the file, but I could be wrong here. is there a way to do an lsof on that file when the issue occurs? |
I can certainly try to get some lsof output when the problem next occurs. I'll update this issue if I am able to do so. That said, I would be surprised if there's another process accessing the file. Having done a bit more research, I wonder if this could be a symptom of this JDK bug? If so, perhaps it would be appropriate to retry? |
interesting JDK bug, you could try out the script mentioned there in your environment since you are the first who is facing this issue it could be very environment specific ... |
As far as I can tell, the problem in the JDK bug may be specific to Linux but nothing more than that. I've just reproduced it in two different Linux VMs but have been unable to reproduce it on macOS. |
and only open jdk seems to be affected, I can't reproduce it on my mac either and not on linux (4.16.3) with an oracle jdk ... |
In Spring Boot CI builds (which run on Linux), we occasionally see Embedded Mongo 2.0.3 fail to start due to a text file being busy:
Here's one example of the failure from which I took the above stack trace.
I wonder if there's a stream or writer that's not being closed or flushed when the file's being written so that it can subsequently be busy when an attempt is made to execute it?
The text was updated successfully, but these errors were encountered: