hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-12954 Addendum uses invalid TLD in test
Date Wed, 01 Apr 2015 18:20:23 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 731464597 -> 39b5ce947


HBASE-12954 Addendum uses invalid TLD in test


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

Branch: refs/heads/branch-1
Commit: 39b5ce94708d03b9c12ced534b718bdc92479089
Parents: 7314645
Author: tedyu <yuzhihong@gmail.com>
Authored: Wed Apr 1 11:20:16 2015 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Wed Apr 1 11:20:16 2015 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/regionserver/TestRegionServerHostname.java     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/39b5ce94/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerHostname.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerHostname.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerHostname.java
index 436bf02..1dbb1ce 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerHostname.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerHostname.java
@@ -47,7 +47,7 @@ public class TestRegionServerHostname {
   public void testInvalidRegionServerHostnameAbortsServer() throws Exception {
     final int NUM_MASTERS = 1;
     final int NUM_RS = 1;
-    String invalidHostname = "hostAddr";
+    String invalidHostname = "hostAddr.invalid";
     TEST_UTIL.getConfiguration().set(HRegionServer.HOSTNAME_KEY, invalidHostname);
     try {
       TEST_UTIL.startMiniCluster(NUM_MASTERS, NUM_RS);
@@ -74,8 +74,7 @@ public class TestRegionServerHostname {
       // iterate through host addresses and use each as hostname
       while (addrList.hasMoreElements()) {
         InetAddress addr = addrList.nextElement();
-        if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isMulticastAddress()
-            || !ni.getDisplayName().startsWith("e")) {
+        if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isMulticastAddress())
{
           continue;
         }
         String hostName = addr.getHostName();


Mime
View raw message