You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "rvesse (via GitHub)" <gi...@apache.org> on 2023/11/14 14:44:53 UTC
Re: [I] Deleting TDB2 location on Windows [jena]
rvesse commented on issue #2092:
URL: https://github.com/apache/jena/issues/2092#issuecomment-1810362743
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 `Files.createTempDirectory()` rather than hardcoding your temporary data location, that way the OS will put the test dataset into its temporary files area and those will naturally get cleaned up by the OS over time anyway. Then you don't need to worry about explicitly deleting the files in your tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org