davisusanibar commented on code in PR #14189:
URL: https://github.com/apache/arrow/pull/14189#discussion_r976481913


##########
java/dataset/src/main/java/org/apache/arrow/dataset/jni/JniLoader.java:
##########
@@ -79,6 +79,7 @@ private void load(String name) {
     final String libraryToLoad = System.mapLibraryName(name);
     try {
       File temp = File.createTempFile("jnilib-", ".tmp", new 
File(System.getProperty("java.io.tmpdir")));
+      temp.deleteOnExit();

Review Comment:
   Test: `mvn -Darrow.cpp.build.dir=/Users/arrow/lib 
-Dtest="TestFileSystemDataset#testBaseOrcRead" clean test`
   
   Before the changes:
   - target/jnilib-11079005003293013490.tmp
   - target/jnilib-9915730910284592509.tmp
   
   After the changes (1 tmp was deleted):
   - target/jnilib-9915730910284592509.tmp
   
   Could be possible to force delete also the another JNI file created?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to