From 2f9acbbd45b416c4539e76274fa50a131effe150 Mon Sep 17 00:00:00 2001 From: Jim Kellerman Date: Mon, 1 Oct 2007 19:45:02 +0000 Subject: [PATCH] HADOOP-1975 HBase tests failing with java.lang.NumberFormatException git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@581047 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + src/java/org/apache/hadoop/hbase/HServerAddress.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index fc15b0c080b..14bb8505fd9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -63,6 +63,7 @@ Trunk (unreleased changes) HADOOP-1929 Add hbase-default.xml to hbase jar HADOOP-1941 StopRowFilter throws NPE when passed null row HADOOP-1966 Make HBase unit tests more reliable in the Hudson environment. + HADOOP-1975 HBase tests failing with java.lang.NumberFormatException IMPROVEMENTS HADOOP-1737 Make HColumnDescriptor data publically members settable diff --git a/src/java/org/apache/hadoop/hbase/HServerAddress.java b/src/java/org/apache/hadoop/hbase/HServerAddress.java index b8959ee7ee4..bb6226042e4 100644 --- a/src/java/org/apache/hadoop/hbase/HServerAddress.java +++ b/src/java/org/apache/hadoop/hbase/HServerAddress.java @@ -54,7 +54,7 @@ public class HServerAddress implements WritableComparable { * @param hostAndPort format 'hostname:port' */ public HServerAddress(String hostAndPort) { - int colonIndex = hostAndPort.indexOf(':'); + int colonIndex = hostAndPort.lastIndexOf(':'); if(colonIndex < 0) { throw new IllegalArgumentException("Not a host:port pair: " + hostAndPort); }