incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Fix for broken test.
Date Tue, 16 Jun 2015 16:44:36 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 34af045ed -> 6a5867c25


Fix for broken test.


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

Branch: refs/heads/master
Commit: 6a5867c25e0fddcb49d61fcc531764d1b9cbc3ff
Parents: 34af045
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Tue Jun 16 12:44:19 2015 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Tue Jun 16 12:44:19 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/blur/store/hdfs/BlurLockFactory.java   | 1 +
 .../test/java/org/apache/blur/lucene/index/BlurIndexWriterTest.java | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/6a5867c2/blur-store/src/main/java/org/apache/blur/store/hdfs/BlurLockFactory.java
----------------------------------------------------------------------
diff --git a/blur-store/src/main/java/org/apache/blur/store/hdfs/BlurLockFactory.java b/blur-store/src/main/java/org/apache/blur/store/hdfs/BlurLockFactory.java
index aab1806..7f49895 100644
--- a/blur-store/src/main/java/org/apache/blur/store/hdfs/BlurLockFactory.java
+++ b/blur-store/src/main/java/org/apache/blur/store/hdfs/BlurLockFactory.java
@@ -46,6 +46,7 @@ public class BlurLockFactory extends LockFactory {
     _dir = dir;
     _baseLockKey = host + "/" + pid;
     _fileSystem = _dir.getFileSystem(_configuration);
+    _fileSystem.mkdirs(_dir);
   }
 
   static class BlurLock extends Lock {

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/6a5867c2/blur-store/src/test/java/org/apache/blur/lucene/index/BlurIndexWriterTest.java
----------------------------------------------------------------------
diff --git a/blur-store/src/test/java/org/apache/blur/lucene/index/BlurIndexWriterTest.java
b/blur-store/src/test/java/org/apache/blur/lucene/index/BlurIndexWriterTest.java
index c197a7e..a18a72e 100644
--- a/blur-store/src/test/java/org/apache/blur/lucene/index/BlurIndexWriterTest.java
+++ b/blur-store/src/test/java/org/apache/blur/lucene/index/BlurIndexWriterTest.java
@@ -74,6 +74,7 @@ public class BlurIndexWriterTest {
           writer1.prepareCommit();
           fail1.set(true);
         } catch (IOException e) {
+          e.printStackTrace();
           if (writer1 != null) {
             try {
               writer1.rollback();


Mime
View raw message