incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [1/2] git commit: Up the replication of the type files.
Date Tue, 13 Aug 2013 13:45:18 GMT
Updated Branches:
  refs/heads/master 71b72250c -> 4252e8f66


Up the replication of the type 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/412cb14c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/412cb14c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/412cb14c

Branch: refs/heads/master
Commit: 412cb14c7f6d3ca043582ab682cae64b70198bce
Parents: 71b7225
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Mon Aug 12 14:17:12 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Mon Aug 12 14:17:12 2013 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/blur/analysis/HdfsFieldManager.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/412cb14c/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java
----------------------------------------------------------------------
diff --git a/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java b/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java
index aba6849..e05e09e 100644
--- a/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java
+++ b/blur-query/src/main/java/org/apache/blur/analysis/HdfsFieldManager.java
@@ -105,6 +105,8 @@ public class HdfsFieldManager extends BaseFieldManager {
       properties.store(outputStream, getComments());
       outputStream.close();
       if (_fileSystem.rename(tmpPath, path)) {
+        // @TODO make this configurable
+        _fileSystem.setReplication(path, (short) 10);
         return true;
       } else {
         _fileSystem.delete(tmpPath, false);


Mime
View raw message