-
Notifications
You must be signed in to change notification settings - Fork 656
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
Deleting TDB2 location on Windows #2092
Comments
I think this is the longstanding JDK bug - https://bugs.openjdk.org/browse/JDK-4715154 - that affects memory mapped files on Windows Terminating the JVM is the only way to allow these files to be deleted. You might want to use |
Hi, |
This is definitely not a Jena bug. |
Btw a simple workaround would be clearing the TDB instead of deleting it. |
Version
4.7.0
What happened?
Hi
I'm using Windows 10 to address this issue (SPARQL-Anything/sparql.anything#266 (comment)). Specifically, we are persisting data on a TDB2 and we want to delete the folder once the computation has been completed. However, deleting the folder fails because there are still files used by the program even when the TDB is explicitly closed.
I've created a unit test to reproduce the exception.
Am I missing something?
Is there anything I can do to explicitly release the resources?
Note This happens only on Windows.
Relevant output and stacktrace
Are you interested in making a pull request?
None
The text was updated successfully, but these errors were encountered: