accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [1/2] git commit: ACCUMULO-3024 really delete the directory and any gunk under it
Date Tue, 05 Aug 2014 17:52:57 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master c3d219560 -> 962eb982e


ACCUMULO-3024 really delete the directory and any gunk under it


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/67c17575
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/67c17575
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/67c17575

Branch: refs/heads/master
Commit: 67c17575d8b853cbb98f5f65ef1304dce7da320e
Parents: 5a90ed7
Author: Eric C. Newton <eric.newton@gmail.com>
Authored: Tue Aug 5 13:51:41 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Tue Aug 5 13:51:41 2014 -0400

----------------------------------------------------------------------
 .../start/classloader/vfs/AccumuloVFSClassLoader.java         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/67c17575/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloVFSClassLoader.java
----------------------------------------------------------------------
diff --git a/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloVFSClassLoader.java
b/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloVFSClassLoader.java
index 49c5b99..b08bd7e 100644
--- a/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloVFSClassLoader.java
+++ b/start/src/main/java/org/apache/accumulo/start/classloader/vfs/AccumuloVFSClassLoader.java
@@ -30,6 +30,7 @@ import java.util.concurrent.atomic.AtomicInteger;
 import org.apache.accumulo.start.classloader.AccumuloClassLoader;
 import org.apache.accumulo.start.classloader.vfs.providers.HdfsFileObject;
 import org.apache.accumulo.start.classloader.vfs.providers.HdfsFileProvider;
+import org.apache.commons.io.FileUtils;
 import org.apache.commons.vfs2.CacheStrategy;
 import org.apache.commons.vfs2.FileObject;
 import org.apache.commons.vfs2.FileSystemException;
@@ -406,6 +407,10 @@ public class AccumuloVFSClassLoader {
         ref.close();
       }
     }
-    computeTopCacheDir().delete();
+    try {
+      FileUtils.deleteDirectory(computeTopCacheDir());
+    } catch (IOException e) {
+      log.error(e, e);
+    }
   }
 }


Mime
View raw message