From 3f81037369b83b78c38a823b99021732681384a3 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 20 Sep 2012 05:40:34 +0000 Subject: [PATCH] HBASE-6842 the jar used in coprocessor is not deleted in local which will exhaust the space of /tmp git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1387861 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java index 7a91227e70f..49d4c0fd34c 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java @@ -189,7 +189,8 @@ public abstract class CoprocessorHost { java.io.File.separator +"." + pathPrefix + "." + className + "." + System.currentTimeMillis() + ".jar"); fs.copyToLocalFile(path, dst); - fs.deleteOnExit(dst); + File tmpLocal = new File(dst.toString()); + tmpLocal.deleteOnExit(); // TODO: code weaving goes here