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
This commit is contained in:
Michael Stack 2012-09-20 05:40:34 +00:00
parent 94774e37b2
commit 3f81037369
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ public abstract class CoprocessorHost<E extends CoprocessorEnvironment> {
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