hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1387862 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
Date Thu, 20 Sep 2012 05:41:16 GMT
Author: stack
Date: Thu Sep 20 05:41:16 2012
New Revision: 1387862

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

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java?rev=1387862&r1=1387861&r2=1387862&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
(original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java
Thu Sep 20 05:41:16 2012
@@ -183,7 +183,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