incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Changing behavior of hdfs dir to match normal lucene behavior for create output files.
Date Wed, 18 Mar 2015 13:03:54 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master cfd95261d -> 6d3823712


Changing behavior of hdfs dir to match normal lucene behavior for create output files.


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

Branch: refs/heads/master
Commit: 6d38237126aa60ff8ae7cb5ffdcb58cf35a44724
Parents: cfd9526
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Mar 18 09:03:57 2015 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Mar 18 09:03:57 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/6d382371/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java
----------------------------------------------------------------------
diff --git a/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java b/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java
index e1e74a4..a727768 100644
--- a/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java
+++ b/blur-store/src/main/java/org/apache/blur/store/hdfs/HdfsDirectory.java
@@ -237,7 +237,7 @@ public class HdfsDirectory extends Directory implements LastModified,
HdfsSymlin
   public IndexOutput createOutput(final String name, IOContext context) throws IOException
{
     LOG.debug("createOutput [{0}] [{1}] [{2}]", name, context, _path);
     if (fileExists(name)) {
-      throw new IOException("File [" + name + "] already exists found.");
+      deleteFile(name);
     }
     _fileStatusMap.put(name, new FStat(System.currentTimeMillis(), 0L));
     final FSDataOutputStream outputStream = openForOutput(name);


Mime
View raw message