HBASE-5990 TestHCM failed with Hadoop 2.0.0
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1337695 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
17a5076606
commit
33d395ef96
|
@ -66,7 +66,7 @@ public class RegionMovedException extends NotServingRegionException {
|
|||
int tmpPort = -1;
|
||||
try {
|
||||
tmpHostname = s.substring(posHostname, s.indexOf(' ', posHostname));
|
||||
tmpPort = Integer.parseInt(s.substring(posPort));
|
||||
tmpPort = Integer.parseInt(s.substring(posPort, s.indexOf('.', posPort)));
|
||||
} catch (Exception ignored) {
|
||||
LOG.warn("Can't parse the hostname and the port from this string: " + s + ", "+
|
||||
"Continuing");
|
||||
|
@ -78,7 +78,7 @@ public class RegionMovedException extends NotServingRegionException {
|
|||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return "Region moved to: " + HOST_FIELD + hostname + " " + PORT_FIELD + port;
|
||||
return "Region moved to: " + HOST_FIELD + hostname + " " + PORT_FIELD + port + ".";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue