incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ph...@apache.org
Subject git commit: Fixed tmp directory issue when running tests in Eclipse
Date Thu, 07 Feb 2013 00:16:02 GMT
Updated Branches:
  refs/heads/0.2-dev 1c0508084 -> e0e8c914d


Fixed tmp directory issue when running tests in Eclipse


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/e0e8c914
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/e0e8c914
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/e0e8c914

Branch: refs/heads/0.2-dev
Commit: e0e8c914d903473c14e43b552c2f4af2b2a70ae1
Parents: 1c05080
Author: Patrick Hunt <phunt@cloudera.com>
Authored: Wed Feb 6 16:15:01 2013 -0800
Committer: Patrick Hunt <phunt@cloudera.com>
Committed: Wed Feb 6 16:15:01 2013 -0800

----------------------------------------------------------------------
 .../src/test/java/org/apache/blur/MiniCluster.java |    2 +-
 .../org/apache/blur/store/HdfsDirectoryTest.java   |    2 +-
 .../blur/store/blockcache/BlockDirectoryTest.java  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e0e8c914/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java
----------------------------------------------------------------------
diff --git a/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java b/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java
index cfa8c3c..bcc6a0e 100644
--- a/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java
+++ b/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java
@@ -245,7 +245,7 @@ public abstract class MiniCluster {
   public static void startZooKeeper(final Properties properties, boolean format, String name,
int port) {
     zkPort = port;
     properties.setProperty("clientPort", Integer.toString(port));
-    File realPath = new File(new File(TMPDIR, name), "/zk_test");
+    File realPath = new File(new File(TMPDIR, name), "zk_test");
     properties.setProperty("dataDir", realPath.getAbsolutePath());
     final ServerConfig serverConfig = new ServerConfig();
     QuorumPeerConfig config = new QuorumPeerConfig();

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e0e8c914/src/blur-store/src/test/java/org/apache/blur/store/HdfsDirectoryTest.java
----------------------------------------------------------------------
diff --git a/src/blur-store/src/test/java/org/apache/blur/store/HdfsDirectoryTest.java b/src/blur-store/src/test/java/org/apache/blur/store/HdfsDirectoryTest.java
index cc64218..f41daa9 100644
--- a/src/blur-store/src/test/java/org/apache/blur/store/HdfsDirectoryTest.java
+++ b/src/blur-store/src/test/java/org/apache/blur/store/HdfsDirectoryTest.java
@@ -55,7 +55,7 @@ public class HdfsDirectoryTest {
 
   @Before
   public void setUp() throws IOException {
-    file = TMPDIR;
+    file = new File(TMPDIR, "hdfsdirectorytest");
     rm(file);
     URI uri = new File(file, "hdfs").toURI();
     Path hdfsDirPath = new Path(uri.toString());

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e0e8c914/src/blur-store/src/test/java/org/apache/blur/store/blockcache/BlockDirectoryTest.java
----------------------------------------------------------------------
diff --git a/src/blur-store/src/test/java/org/apache/blur/store/blockcache/BlockDirectoryTest.java
b/src/blur-store/src/test/java/org/apache/blur/store/blockcache/BlockDirectoryTest.java
index 4dced3b..c58e41a 100644
--- a/src/blur-store/src/test/java/org/apache/blur/store/blockcache/BlockDirectoryTest.java
+++ b/src/blur-store/src/test/java/org/apache/blur/store/blockcache/BlockDirectoryTest.java
@@ -103,7 +103,7 @@ public class BlockDirectoryTest {
 
   @Before
   public void setUp() throws IOException {
-    file = TMPDIR;
+    file = new File(TMPDIR, "blockdirectorytest");
     rm(file);
     file.mkdirs();
     FSDirectory dir = FSDirectory.open(new File(file, "base"));


Mime
View raw message