Updated Branches:
  refs/heads/master 95cb49043 -> 7f8c42d0f

ACCUMULO-1585 sometimes addresses are advertized as host+port


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

Branch: refs/heads/master
Commit: 40e167ce42c194e707a6b0941248704835ddb071
Parents: 05b3359
Author: Eric Newton <eric.new...@gmail.com>
Authored: Thu Oct 10 11:10:39 2013 -0400
Committer: Eric Newton <eric.new...@gmail.com>
Committed: Thu Oct 10 11:10:39 2013 -0400

----------------------------------------------------------------------
 core/src/main/java/org/apache/accumulo/core/util/AddressUtil.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/40e167ce/core/src/main/java/org/apache/accumulo/core/util/AddressUtil.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/util/AddressUtil.java 
b/core/src/main/java/org/apache/accumulo/core/util/AddressUtil.java
index 49d689e..08d4368 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/AddressUtil.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/AddressUtil.java
@@ -22,6 +22,7 @@ public class AddressUtil {
 
 
   static public HostAndPort parseAddress(String address) throws 
NumberFormatException {
+    address = address.replace('+', '-');
     HostAndPort hap = HostAndPort.fromString(address);
     if (!hap.hasPort())
       throw new IllegalArgumentException("Address was expected to contain 
port. address=" + address);

Reply via email to