hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1387861 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
Date Thu, 20 Sep 2012 05:40:34 GMT
Author: stack
Date: Thu Sep 20 05:40:34 2012
New Revision: 1387861

URL: http://svn.apache.org/viewvc?rev=1387861&view=rev
Log:
HBASE-6842 the jar used in coprocessor is not deleted in local which will exhaust the space
of /tmp

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java?rev=1387861&r1=1387860&r2=1387861&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
Thu Sep 20 05:40:34 2012
@@ -189,7 +189,8 @@ public abstract class CoprocessorHost<E 
           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
 



Mime
View raw message