diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index ed674ec80f..6e23efd64f 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -923,6 +923,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. 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 72ca8cc870..98acd168ef 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 @@ else if ("file".equals(url.getProtocol())) { File tempJar = File.createTempFile("hadoop-", "", testDir); tempJar = new File(tempJar.getAbsolutePath() + ".jar"); createJar(baseDir, tempJar); + tempJar.deleteOnExit(); return tempJar.getAbsolutePath(); } }