Re: deleteOnExit when JVM shutsdown non gracefully

2013-04-10 Thread Andrew Purtell
Perhaps we can simply unlink the file after load. On *nix the OS would GC the file data after the JVM process terminates and the filehandles are closed. Of course this won't work on Windows. (But I don't care about that.) We added a change such that now all coprocessor jars are brought locally to

Re: deleteOnExit when JVM shutsdown non gracefully

2013-04-10 Thread Ted Yu
Interesting. File a JIRA ? Thanks On Apr 10, 2013, at 2:30 AM, Asaf Mesika wrote: > Hi, > > In the CoprocessorHost.java file, there's the following code section used > to load a coprocessor jar: > > fs.copyToLocalFile(path, dst); > > File tmpLocal = new File(dst.toString()); > >

deleteOnExit when JVM shutsdown non gracefully

2013-04-10 Thread Asaf Mesika
Hi, In the CoprocessorHost.java file, there's the following code section used to load a coprocessor jar: fs.copyToLocalFile(path, dst); File tmpLocal = new File(dst.toString()); tmpLocal.deleteOnExit(); There's an assumption here that the JVM will gracefully shutdown (as oppo