accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject git commit: ACCUMULO-3007 made volume replacement ignore relative paths
Date Tue, 05 Aug 2014 18:21:29 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6.1-SNAPSHOT 67c17575d -> 62093088e


ACCUMULO-3007 made volume replacement ignore relative paths


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

Branch: refs/heads/1.6.1-SNAPSHOT
Commit: 62093088eb8b989c7b0571a372cc7197edbae3d2
Parents: 67c1757
Author: Keith Turner <kturner@apache.org>
Authored: Mon Jul 21 13:22:28 2014 -0400
Committer: Eric C. Newton <eric.newton@gmail.com>
Committed: Tue Aug 5 14:20:47 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/accumulo/server/fs/VolumeUtil.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/62093088/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeUtil.java
----------------------------------------------------------------------
diff --git a/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeUtil.java b/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeUtil.java
index 436667c..c87074b 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeUtil.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/fs/VolumeUtil.java
@@ -87,6 +87,11 @@ public class VolumeUtil {
       return null;
     }
 
+    if (!path.contains(":")) {
+      // ignore relative paths
+      return null;
+    }
+
     Path p = new Path(path);
 
     // removing slash because new Path("hdfs://nn1").equals(new Path("hdfs://nn1/")) evaluates
to false


Mime
View raw message