hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rkan...@apache.org
Subject hadoop git commit: HADOOP-9737. JarFinder#getJar should delete the jar file upon destruction of the JVM (jbonofre via rkanter)
Date Fri, 08 May 2015 23:07:41 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 23065e605 -> 015b30c3a


HADOOP-9737. JarFinder#getJar should delete the jar file upon destruction of the JVM (jbonofre
via rkanter)

(cherry picked from commit 315074bb08e0f2c9508834ada62f1533ffd82a26)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/015b30c3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/015b30c3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/015b30c3

Branch: refs/heads/branch-2
Commit: 015b30c3ab0231f316f318417c69c869fc10f9f0
Parents: 23065e6
Author: Robert Kanter <rkanter@apache.org>
Authored: Fri May 8 16:05:04 2015 -0700
Committer: Robert Kanter <rkanter@apache.org>
Committed: Fri May 8 16:05:59 2015 -0700

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt                   | 3 +++
 .../src/test/java/org/apache/hadoop/util/JarFinder.java           | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/015b30c3/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 3ba1239..51529a9 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -467,6 +467,9 @@ Release 2.7.0 - 2015-04-20
     HADOOP-11801. Update BUILDING.txt for Ubuntu. (Gabor Liptak via
     Arpit Agarwal)
 
+    HADOOP-9737. JarFinder#getJar should delete the jar file upon destruction
+    of the JVM (jbonofre via rkanter)
+
   OPTIMIZATIONS
 
     HADOOP-11323. WritableComparator#compare keeps reference to byte array.

http://git-wip-us.apache.org/repos/asf/hadoop/blob/015b30c3/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/JarFinder.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/JarFinder.java
b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/JarFinder.java
index 72ca8cc..98acd16 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/JarFinder.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/JarFinder.java
@@ -160,6 +160,7 @@ public class JarFinder {
             File tempJar = File.createTempFile("hadoop-", "", testDir);
             tempJar = new File(tempJar.getAbsolutePath() + ".jar");
             createJar(baseDir, tempJar);
+            tempJar.deleteOnExit();
             return tempJar.getAbsolutePath();
           }
         }


Mime
View raw message