You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Harsh J (JIRA)" <ji...@apache.org> on 2013/07/16 16:08:48 UTC
[jira] [Commented] (HADOOP-9737) JarFinder#getJar should delete the
jar file upon destruction of the JVM
[ https://issues.apache.org/jira/browse/HADOOP-9737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709794#comment-13709794 ]
Harsh J commented on HADOOP-9737:
---------------------------------
This sounds fine to me. Would you like to submit a patch as well?
bq. In order to preserve backwards compatibility a configuration setting could be implemented, e.g. test.build.dir.purge.on.exit
The specific part you point to is specifically existing for tests alone. If the delete-on-exit change does not break any tests currently, then it is fine to go in as-is. We do not need configurability there. MR clients use a similar path and do delete created jars on regular exit.
> JarFinder#getJar should delete the jar file upon destruction of the JVM
> -----------------------------------------------------------------------
>
> Key: HADOOP-9737
> URL: https://issues.apache.org/jira/browse/HADOOP-9737
> Project: Hadoop Common
> Issue Type: Bug
> Components: util
> Affects Versions: 2.0.0-alpha
> Reporter: Esteban Gutierrez
>
> Once {{JarFinder.getJar()}} is invoked by a client app, it would be really useful to destroy the generated JAR after the JVM is destroyed by setting {{tempJar.deleteOnExit()}}. In order to preserve backwards compatibility a configuration setting could be implemented, e.g. {{test.build.dir.purge.on.exit}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira