File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,12 @@ public void testRegionServerHostname() throws Exception {
9696 // iterate through host addresses and use each as hostname
9797 while (addrList .hasMoreElements ()) {
9898 InetAddress addr = addrList .nextElement ();
99- if (addr .isLoopbackAddress () || addr .isLinkLocalAddress () || addr .isMulticastAddress ()) {
99+ if (addr .isLoopbackAddress () || addr .isLinkLocalAddress () || addr .isMulticastAddress () ||
100+ !addr .isSiteLocalAddress ()) {
100101 continue ;
101102 }
102103 String hostName = addr .getHostName ();
103- LOG .info ("Found " + hostName + " on " + ni );
104+ LOG .info ("Found " + hostName + " on " + ni + ", addr=" + addr );
104105
105106 TEST_UTIL .getConfiguration ().set (HRegionServer .MASTER_HOSTNAME_KEY , hostName );
106107 TEST_UTIL .getConfiguration ().set (HRegionServer .RS_HOSTNAME_KEY , hostName );
You can’t perform that action at this time.
0 commit comments